You can't save this record at this time

A

a

access 2007

How can I cancel this message ? and display custom message

You can't save this record at this time

May have encountered an error while trying to save a record if you close
this object now, the data change you made will be lost.

Do you want to close the database object now
 
M

Minton M

access 2007

How can I cancel this message ? and display custom message

You can't save this record at this time

May have encountered an error while trying to save a record if you close
this object now, the data change you made will be lost.

Do you want to close the database object now

You need to use the Form Error event and handle it from there.

In the handler....

Private Sub Form_Error(DataErr As Integer, Response As Integer)
End Sub

.... DataErr gives you an error codde and Response let's you suppress
the Access message. There are some good examples in help on how to do
this.

Hope this helps,
James
 

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