Append Querys

ddrew

seasoned user
Local time
Today, 18:37
Joined
Jan 26, 2003
Messages
911
I have a button that runs an Append Query. I used the code from the wizzard, but I want to suppress the message that you are appending. can someone tell me how to that please, thanks
 
put this in the button click before and after you run the query

before- docmd.setwarnings = false
after - docmd.setwarnings = true
 
Its giving me a message Compile erroe: Argument not optional
 
rainman is correct..

before- docmd.setwarnings = false
after - docmd.setwarnings = true

But you do not put the before - and after -

use only this:

docmd.setwarnings = false
docmd.setwarnings = true
 
Yes I appreciate that! but its giving me a message Compile error: Argument not optional, and then it highlights the setwarnings line
 
docmd.setwarnings = false
docmd.setwarnings = true

Change to:

Code:
docmd.setwarnings False
docmd.setwarnings True

aka remove the equalsign ;)

JR
 
Sorry my fault.

Use this:

docmd.setwarnings false
docmd.setwarnings true
 

Users who are viewing this thread

Back
Top Bottom