PC Review


Reply
Thread Tools Rate Thread

CLosing Linked datatable

 
 
=?Utf-8?B?Q2FuZHltYW4=?=
Guest
Posts: n/a
 
      27th Feb 2007
I have a report template that saves a report twice; a 'DatedReport 20070227'
and a 'LastReport'. I created a 'LastDate' table in the LastReport report
that is refered to in the template (it is in a small data query). So when
the template runs it updates the datatable linked to the LastReport.LastDate,
but now I want to save the report.

The file will save as DatedReport 20070227 just fine, but it will not allow
me to overwrite the LastReport saying #70: Access Denied.

I think the link from the tempolate to the LastReport is still open.
Q- How do I close the connection to the LastReport so I can overwrite the
file?

Thanks so much for you help.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2FuZHltYW4=?=
Guest
Posts: n/a
 
      28th Feb 2007
I found the answer using :
Sheets("Corrective Action Record").QueryTables("Latest_Report").Delete

"Candyman" wrote:

> I have a report template that saves a report twice; a 'DatedReport 20070227'
> and a 'LastReport'. I created a 'LastDate' table in the LastReport report
> that is refered to in the template (it is in a small data query). So when
> the template runs it updates the datatable linked to the LastReport.LastDate,
> but now I want to save the report.
>
> The file will save as DatedReport 20070227 just fine, but it will not allow
> me to overwrite the LastReport saying #70: Access Denied.
>
> I think the link from the tempolate to the LastReport is still open.
> Q- How do I close the connection to the LastReport so I can overwrite the
> file?
>
> Thanks so much for you help.

 
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
Closing linked files in PPT 7 Mary B Microsoft Powerpoint 3 13th Feb 2010 01:12 AM
Update Links after Closing Linked File =?Utf-8?B?R2VycnkgTw==?= Microsoft Excel Programming 1 12th Sep 2007 01:28 PM
Closing connection to linked database ReidarT Microsoft Access Form Coding 1 13th Nov 2005 09:17 PM
Closing Linked Documents =?Utf-8?B?Y3lka2ls?= Microsoft Word Document Management 1 1st Aug 2004 05:50 AM
Closing Linked Spreadsheets Amy Microsoft Excel Worksheet Functions 0 18th Sep 2003 04:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:45 AM.