i am writting a macro that will use multiple update queries
i know in the sql it specifies the name of the table, how do you set it to run and prompt you for the name of the table you want to update
If I've understood correctly, you want to run an update query on several tables. For this to work, all of your tables would have to have identical field names - which seems unlikely.
Anyway, if you do want to do this, the following method may suit:
+ declare a variable
+ use something like an inputbox to prompt the user for the table name and assign the value entered to the variable
+ construct your SQL using the variable
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.