PC Review


Reply
Thread Tools Rate Thread

Access to SQL

 
 
Walt Herman
Guest
Posts: n/a
 
      2nd Oct 2009
Hello all and thanks in advance for looking at my problem. I have an access
application which grabs a text file, does some modifications to the data and
then is supposed to append the "new" data int a SQL db table which exists in
the Access database as a linked table. The first time I run it all is good,
the data appends into the table successfully. It then appears that the link
becomes "stale" because I have to use Linked table manager to update the
link. My problem is that I do not want to have to teach the end users how to
do this. I want the link to remain valid regardless of the number of times I
run the macro. Any suggestions? Thx again!

Walt
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      2nd Oct 2009
Walt

What 'symptoms' are you seeing? How are you determining that the link has
grown 'stale'?

Regards

Jeff Boyce
Microsoft Access MVP

"Walt Herman" <(E-Mail Removed)> wrote in message
news:AE754DF0-7C6C-4FED-BB6C-(E-Mail Removed)...
> Hello all and thanks in advance for looking at my problem. I have an
> access
> application which grabs a text file, does some modifications to the data
> and
> then is supposed to append the "new" data int a SQL db table which exists
> in
> the Access database as a linked table. The first time I run it all is
> good,
> the data appends into the table successfully. It then appears that the
> link
> becomes "stale" because I have to use Linked table manager to update the
> link. My problem is that I do not want to have to teach the end users how
> to
> do this. I want the link to remain valid regardless of the number of times
> I
> run the macro. Any suggestions? Thx again!
>
> Walt



 
Reply With Quote
 
Walt Herman
Guest
Posts: n/a
 
      2nd Oct 2009
When I double click on the linked table I get #name# in every field of every
record of the linked table and the append query fails. However, if I do not
try and open the linked table the append is successful so long as I never
open the linked table from within Access. The short of it Jeff is your
question kind of provides a solution because if I just don't ever open the
linked table I'll avoid the problem. That said, it is an annooying problem as
I have come across it in the past and this time I was compelled to raise it
in the discussion group...Any ideas, not so much for now but long term???

"Jeff Boyce" wrote:

> Walt
>
> What 'symptoms' are you seeing? How are you determining that the link has
> grown 'stale'?
>
> Regards
>
> Jeff Boyce
> Microsoft Access MVP
>
> "Walt Herman" <(E-Mail Removed)> wrote in message
> news:AE754DF0-7C6C-4FED-BB6C-(E-Mail Removed)...
> > Hello all and thanks in advance for looking at my problem. I have an
> > access
> > application which grabs a text file, does some modifications to the data
> > and
> > then is supposed to append the "new" data int a SQL db table which exists
> > in
> > the Access database as a linked table. The first time I run it all is
> > good,
> > the data appends into the table successfully. It then appears that the
> > link
> > becomes "stale" because I have to use Linked table manager to update the
> > link. My problem is that I do not want to have to teach the end users how
> > to
> > do this. I want the link to remain valid regardless of the number of times
> > I
> > run the macro. Any suggestions? Thx again!
> >
> > Walt

>
>
>

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      2nd Oct 2009
So, you're saying that you can repeatedly run the query and that every
append works, but you can't open the table to confirm that it worked? Hmmm?

How is your SQL-Server table 'linked'? I'm assuming you used a DSN, but
....?

Regards

Jeff Boyce
Microsoft Access MVP

"Walt Herman" <(E-Mail Removed)> wrote in message
news:43EEDA69-2A13-4688-B2DE-(E-Mail Removed)...
> When I double click on the linked table I get #name# in every field of
> every
> record of the linked table and the append query fails. However, if I do
> not
> try and open the linked table the append is successful so long as I never
> open the linked table from within Access. The short of it Jeff is your
> question kind of provides a solution because if I just don't ever open the
> linked table I'll avoid the problem. That said, it is an annooying problem
> as
> I have come across it in the past and this time I was compelled to raise
> it
> in the discussion group...Any ideas, not so much for now but long term???
>
> "Jeff Boyce" wrote:
>
>> Walt
>>
>> What 'symptoms' are you seeing? How are you determining that the link
>> has
>> grown 'stale'?
>>
>> Regards
>>
>> Jeff Boyce
>> Microsoft Access MVP
>>
>> "Walt Herman" <(E-Mail Removed)> wrote in message
>> news:AE754DF0-7C6C-4FED-BB6C-(E-Mail Removed)...
>> > Hello all and thanks in advance for looking at my problem. I have an
>> > access
>> > application which grabs a text file, does some modifications to the
>> > data
>> > and
>> > then is supposed to append the "new" data int a SQL db table which
>> > exists
>> > in
>> > the Access database as a linked table. The first time I run it all is
>> > good,
>> > the data appends into the table successfully. It then appears that the
>> > link
>> > becomes "stale" because I have to use Linked table manager to update
>> > the
>> > link. My problem is that I do not want to have to teach the end users
>> > how
>> > to
>> > do this. I want the link to remain valid regardless of the number of
>> > times
>> > I
>> > run the macro. Any suggestions? Thx again!
>> >
>> > Walt

>>
>>
>>



 
Reply With Quote
 
Mary Chipman [MSFT]
Guest
Posts: n/a
 
      5th Oct 2009
I'd recommend putting a Profiler trace on the calls so you can debug
the conversation Access is having with SQL Server. See
http://msdn.microsoft.com/en-us/library/ms979207.aspx for a how-to and
http://msdn.microsoft.com/en-us/library/ms181091.aspx for the
documentation in SQL BOL.

--Mary

On Fri, 2 Oct 2009 08:37:02 -0700, Walt Herman
<(E-Mail Removed)> wrote:

>Hello all and thanks in advance for looking at my problem. I have an access
>application which grabs a text file, does some modifications to the data and
>then is supposed to append the "new" data int a SQL db table which exists in
>the Access database as a linked table. The first time I run it all is good,
>the data appends into the table successfully. It then appears that the link
>becomes "stale" because I have to use Linked table manager to update the
>link. My problem is that I do not want to have to teach the end users how to
>do this. I want the link to remain valid regardless of the number of times I
>run the macro. Any suggestions? Thx again!
>
>Walt

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open my Access files after conversion from Access 97 to Access 2003 M Shafaat Microsoft Access 5 10th Apr 2010 09:04 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
W2K3 Service w/ UNC Access, Local Disk Access, and DB Access Rob Microsoft C# .NET 6 2nd Aug 2004 01:44 PM
Access "showing images on first page only of very wide Access report. Windows XP, Access XP Jack Microsoft Access Reports 4 18th Nov 2003 03:01 PM
Re: Allowing users (w/o MS Access) to access an Access 2000 database Wayne Morgan Microsoft Access 0 29th Sep 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:36 PM.