Append Query Message Box

S

Sullivan

I was wondering if anyone knew how to, when appending to a
table from VB, to not have the message box that appears
when you are appending a row to a table.

I have a log that's hidden from the users that gets
updated when they do transactions with a new row, and it
wouldn't make sense for them to have to click through the
Access message boxes for a table they don't touch.

Sullivan
 
T

Tim Ferguson

I was wondering if anyone knew how to, when appending to a
table from VB, to not have the message box that appears
when you are appending a row to a table.

strSQL = "INSERT INTO Something etc..."

db.Execute strSQL, dbFailOnError

The big advantage of this over the DoCmd object is that you can use On
Error to trap any SQL errors in code and deal with them without killing the
data.

Best wishes


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top