samp said:
how can I know from VBA which Data Base is pointing a query
"create table"
I think you are asking how you can tell programmatically which queries are
action queries?
Try something like this:
CurrentDb.QueryDefs("Query1").Type
It should return the value of dbQMakeTable for your 'create table' type
query.
For other values, open the code window, and press F2 to open the Object
Browser. Search for dbQAppend etc.