Are you talking about the confirmations of an action query? Like "You are about to delete 150 records from the orders table, do you wish to continue?"
If so, you can do this:
==========
DoCmd.SetWarnings False
DoCmd.OpenQuery "YourQuery"
DoCmd.SetWarnings True
==========
OR, I recommend this instead, becuase SetWarnings will eliminate any response from the database, even an error you may want to see. Where as the SetOption only affects the action queries.
==========
Application.SetOption "Confirm Action Queries", False
DoCmd.OpenQuery "YourQuery"
Application.SetOption "Confirm Action Queries", True
==========
Don't know if that's what you are looking for or not. Jim Lunde
compugeeks@hotmail.com
We all agree your theory is crazy, but is it crazy enough?