PC Review


Reply
Thread Tools Rate Thread

"." changes to "#" in Access VBA DoCmd.TransferText call

 
 
Dick Babillis
Guest
Posts: n/a
 
      20th Jul 2008
Access 2003 SP2 running on Windows Server 2003 SP2

Call to TableExport routine to export Access table as text file
Relevant lines of code are:

Public Sub TableExport(sTable As String)
sTxt = "C:\PeopleA\Export\tblLabels.txt"
DoCmd.TransferText acExportDelim, , sTable, sTxt, True

On SOME machines at this location I get the error message:

Run-time error '3011': The Microsoft Jet database engine could not find the
object 'tblLabels#txt' ... Note . changed to #

On other machines, call works without issue

Seems like situation arose only within last 4-6 weeks

Any insight would be appreciated. Thank you.


 
Reply With Quote
 
 
 
 
pietlinden@hotmail.com
Guest
Posts: n/a
 
      21st Jul 2008
On Jul 20, 3:44*pm, Dick Babillis <Dick
Babil...@discussions.microsoft.com> wrote:
> Access 2003 SP2 running on Windows Server 2003 SP2
>
> Call to TableExport routine to export Access table as text file
> Relevant lines of code are:
>
> Public Sub TableExport(sTable As String)
> * *sTxt = "C:\PeopleA\Export\tblLabels.txt"
> * *DoCmd.TransferText acExportDelim, , sTable, sTxt, True
>
> On SOME machines at this location I get the error message:
>
> Run-time error '3011': *The Microsoft Jet database engine could not find the
> object 'tblLabels#txt' ... *Note . changed to #
>
> On other machines, call works without issue
>
> Seems like situation arose only within last 4-6 weeks
>
> Any insight would be appreciated. *Thank you.


that's weird. I would try something like the standard...
1. export all objects in the database to a new blank database.
2. Open a code module and reset all the necessary references
3. compile the VBA modules.
4. test.

What happens if you do that? I would try the standard easy fix before
trying to figure out what's going on. If the easy fix solves it, no
need to go further.
 
Reply With Quote
 
david
Guest
Posts: n/a
 
      21st Jul 2008
Yes, it does that: No, that is not what your problem is.

dot/period has a special meaning in JET SQL, so it is
shown as #. If you really have a # in your file name you
are in trouble, so avoid that. If you really have a database
called tblLabels with a table called txt, write it like this
[tblLabels].[txt] :~) but I'm sure that is not what you meant.

You have to look again to see what the real problem is.
What directory are you exporting to? Is it there? Does
it have spaces in the directory path? The # is not the problem.

(david)





"Dick Babillis" <Dick (E-Mail Removed)> wrote in message
news:98478370-AD71-4798-A64A-(E-Mail Removed)...
> Access 2003 SP2 running on Windows Server 2003 SP2
>
> Call to TableExport routine to export Access table as text file
> Relevant lines of code are:
>
> Public Sub TableExport(sTable As String)
> sTxt = "C:\PeopleA\Export\tblLabels.txt"
> DoCmd.TransferText acExportDelim, , sTable, sTxt, True
>
> On SOME machines at this location I get the error message:
>
> Run-time error '3011': The Microsoft Jet database engine could not find
> the
> object 'tblLabels#txt' ... Note . changed to #
>
> On other machines, call works without issue
>
> Seems like situation arose only within last 4-6 weeks
>
> Any insight would be appreciated. Thank you.
>
>



 
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
DoCmd.TransferText acExportDelim, , "Tbl_Temp2", "C:\Test1.txt" =?Utf-8?B?R2FyZGVuSmlt?= Microsoft Access External Data 2 10th Feb 2006 02:56 PM
DoCmd.TransferText acImportDelim, "spec1", "filetmp","filename",false Satya Microsoft Access External Data 1 17th Jul 2004 10:17 AM
DoCmd.TransferText acImportDelim, mySpec, myTable, myFile, True, "" =?Utf-8?B?bWFyY3VzLg==?= Microsoft Access VBA Modules 3 9th May 2004 11:06 PM
=FIND("text","this is the text to search",1) / DoCmd.TransferText =?Utf-8?B?bWFyY3VzLg==?= Microsoft Access VBA Modules 2 21st Apr 2004 11:23 PM
Access 97 Upgrade 2000 Error In "DoCmd.TransferText acExportFixed" =?Utf-8?B?S2V2aW4=?= Microsoft Access External Data 1 21st Nov 2003 03:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 AM.