tags:

views:

35

answers:

2

i am filling out a form on a word document which posts to access database,.

does anyone know if there a way to suppress the message "do you want to insert this record"???

raj mentioned that this is possible to do manually, uncheck ACTION QUERIES, but can i do this programmatically/????

+1  A: 

Here is how to fix it

Run MS Access open a database. In the menu, under Tools / Options, uncheck the check-box for ACTION QUERIES.

This is machine specific (not database specific).

This is possible through VBA but only for the current running instance. You can do DoCmd.SetWarnings FALSE


LOL...

In your "other question" referred to, you are asking this question in code

bytContinue = MsgBox("Do you want to insert this record?", vbYesNo, "Add Record")

Just replace that line with

bytContinue = vbYes

Raj More
is it possible to programmatically do this>?
I__
yes yes yes yes i know!!!!!!!!!!!! anyway thanks so much
I__
+4  A: 

Given your other question...

Remove the line from your code.

Tobiasopdenbrouw
remove which line ?
I__
This one `bytContinue = MsgBox("Do you want to insert this record?", vbYesNo, "Add Record")`. But you'll have to rewrite it instead of removing it.
Tobiasopdenbrouw
thank you very much! that was my negligence
I__
+1 for noticing the "other question".
Raj More