473,419 Members | 4,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Trying to figure why my . are turning into a #

489 256MB
I'm trying to create a .txt file so that I can merge it with a word document
Expand|Select|Wrap|Line Numbers
  1.     vtable = "mailinglabels"
  2.     apppath = "C:\filmsextract"
  3.     appathx = ("" & apppath & "" + "\" + "mailinglabels.txt")
  4.     DoCmd.TransferText acExportMerge, , vtable, appathx, True
  5.  
when the program get to the acExportMerge I get this error "The Microsoft Office Access database engine could not find the object 'mailinglabels#txt'. Make sure the object exists and that you spell its name and the path name correctly." can any one give me any clues and to what's going on.
Jan 19 '21 #1
3 2038
NeoPa
32,556 Expert Mod 16PB
My guess is that you only half consider what it is you're doing. You have an idea of the eventual results required but are then confusing it with the first step.

Are you trying to merge into a Word document (as implied by acExportMerge) or are you trying to create a Text file that you may later want to merge with the Word doc?

Documentation on the acExportMerge option is sparse but I'm guessing it is expecting a Word file address as its FileName parameter. It's also expecting this file to exist already, for your data to be merged into it. I doubt either of these is true.

I know that doesn't explain why the '.' is shown in the error message as a '#'. That looks like it's expecting a FileName plus a point within the file - say a bookmark - so it may be treating your "mailinglabels.txt" as File=mailinglabels with a Bookmark specification of "txt". In which case it's going to be mightily confused.

Maybe if the documentation were clearer this could all have been avoided simply.
Jan 20 '21 #2
CD Tom
489 256MB
Yes, I did notice that the table name "mailinglabels" and the .txt file has the same name. When I changed the .txt name to mailing.txt I didn't get the error. Thanks for you insight into this.
Jan 20 '21 #3
NeoPa
32,556 Expert Mod 16PB
Hi Tom.

I'm glad I could help, though I have to admit that wasn't my thinking. If that triggered something in you to check that though - all to the good.

BTW. I assume you set your response as Best Answer by accident, it was certainly not correct to do so, so I've reset it for you. I did consider setting mine but frankly it doesn't qualify either. It only triggered something. It doesn't take a new reader directly to the answer.
Jan 20 '21 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Brian Kazian | last post by:
Here's my problem, and hopefully someone can help me figure out if there is a good way to do this. I am writing a program that allows the user to enter an equation in a text field using...
7
by: Greg Raven | last post by:
I styled my links just the way I want them using CSS, but now my linked images have picked up these same styles. I've tried turning the styles off for the images with: a img { text-decoration:...
7
by: Todd Cary | last post by:
I inherited an application where the Flyout works in Firefox but not in IE. My JavaScript background is sparse, so I am not sure how to approach the problem. Any suggestions are welcomed! The...
13
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
1
by: melanieab | last post by:
Hi, I'm trying to figure out how to take the string entered into a textbox, and if I don't just accept the number entered, if +, -, *, / were entered, to convert that into the correct number to be...
2
by: rk325 | last post by:
I have a question about cookies & browser permissions and turning off cookies when creating a web site (cookieless mode in web.config). I have a web site that of course uses Session variables....
1
by: UJ | last post by:
How do you turn on and turn off the debugging information on the end of a web page? Someone else set up a dev web site and a test web site and the dev has it turned on, the test turned off. I'm...
0
by: Siew-Ming | last post by:
Hi, Try to figure a way to turn off a folder Read-only property for a specific folder (Windows 2003) at multi sites. When we do our application upgrade/patch, we manually turn off the...
6
by: Rain | last post by:
Hi, I noticed the other day when I was trying to optimise the traffic on a particular web page that it had significant viewstate even though I had turned it off for most of the controls. So in...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.