Hello,
I would like to disable the query warnings when I run append, create table and delete queries. It needs to be disables for the sheet, not just for my copy of access, because other people will be using the database.
Tom
Hello,
I would like to disable the query warnings when I run append, create table and delete queries. It needs to be disables for the sheet, not just for my copy of access, because other people will be using the database.
Tom
This can be done if you run queries in code (macro or VBA) but not if you run them from the navigation pane.
DoCmd.SetWarnings = False
...
DoCmd.SetWarnings = True
or use:
CurrentDb.Execute "DELETE FROM tablename"
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I am not sure how to do that. I'm running a bunch of queries in a macro but I dont know where to put that DoCmd thing.
I showed VBA. The SetWarnings can be done in macro. Set False before running the queries and then set True afterward.
Why are you running create table queries?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I cannot find SetWarnings. Is it supposed to be in the Add New Action drop down? Because if so Its not there.
Click the Show All Actions button on the Macro Tools ribbon Design tab.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I can't look at A2010 right now, but in A2000 you can turn off warnings for record changes, document deletions and action queries.
OPTIONS
Edit/Find tab
There is an outline "Confirm" that has check boxes for record changes, document deletions and action queries.
Access should have the same options in the backstage(??)... (FILE / Options / ....)
*** use at your own risk. ***
Found under File > Options > Client Settings. This is an application setting that would have to be done for each user's install of Access and will affect all databases they open.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
I didn't say it was a GOOD option .... just that it is available..
And I wouldn't/don't use it.....