using a query to insert data in a fo_rm

BSY

New member
Local time
Today, 10:45
Joined
Oct 3, 2010
Messages
9
Edit

is unable to insert data to database.
 
Last edited:
What error is raised?

This is the error

testing.png


testing2.png
 
That all looks pretty standard (you can turn those warnings off if you wish), when you answer yes to the second dialogue box, does it Append the one record, as advised? or is there another error?
 
That all looks pretty standard (you can turn those warnings off if you wish), when you answer yes to the second dialogue box, does it Append the one record, as advised? or is there another error?

no error , can insert all the data , how to turn off the warnings ?
 
From your screen shots, I'm guessing you are using Access '07, so click on the Circular button in the very top left hand corner of the window, and click Access Options, now got to the Advanced menu, under Editing look for Confirm, uncheck Action queries.
 
If you use DoCmd.SetWarnings False, make sure to put

DoCmd.SetWarnings True

in the EXIT path of your procedure where you used false. Otherwise you may find yourself with a problem later on and strange things will occur.

Most of the time we suggest using
Code:
strSQL = "SQL string goes in here"
CurrentDb.Execute strSQL, dbFailOnError
because that doesn't require you to turn off anything and you don't get confirmations.
 
Thanks for the information , reply and teaching ~
learning many for u all ^ ^
 

Users who are viewing this thread

Back
Top Bottom