richtsteig,
Using example names for all the objects in play, please help me with the reference (dimming) to the textboxes where I will place the name of the table source and the table target (for this one depending on which query I am modifying it will either create a new table or will append to one - for this case I will have to copy -format only - of the one I need to use and rename it accordingly based on what I will type in the textboxes.
At the end and ideally, I will end up with a code that will:
1.- Modify the source and target table of a the make a table Query1.
2.- Modify the source and target table of a the make a table Query2.
3.- Copy a table format only under a different name.
4.-Modify the source and target table of an apppend to a table Query3.
The textboxes in the form will hold the sources and target tables names and the name for the table used to do the append to table query.
If the concept is more clear now and wish to help me with it, please quote me the additional points you require to complete the project.
Let me know if you need further clarification of what in earth am I trying to do.
Thanks again . . .
H o g a n . -
Main Topics
Browse All Topics





by: richtsteigPosted on 1998-12-02 at 04:25:40ID: 1969850
I don't know exactly what your main problem is.
y").sql 'getting the sample query ble]",Dest inationTab le) 'changing tablenames
Regarding your question title, I think the problem is that you cannot use a parameter for a tablename like
SELECT * FROM [AnyTable]
What you can do, is to store your "sourcequery" using a mark like [AnyTable] and run your query after replacing the marks for your module.
Example:
Dim thisSQL as string
thissql = MyDB.QueryDefs("SourceQuer
thissql = strReplace(thissql,"[AnyTa
MyDB.Execute SQL
Please help with some more detailed information if I misunderstood your question.