Force Writing of the Buffer

C

Chris Eberhart

Is that a simple way to force an open form to write it's
buffer to the affected tables (update them) so that the
data are available?
I have done this by moving back a record and then forward
again, but this is a non-elegant solution.
 
D

Dirk Goldgar

Chris Eberhart said:
Is that a simple way to force an open form to write it's
buffer to the affected tables (update them) so that the
data are available?
I have done this by moving back a record and then forward
again, but this is a non-elegant solution.

There are several ways. Manually, you can press Shift+Enter to save the
current record. In code you can execute the statement

RunCommand acCmdSaveRecord

or

Me.Dirty = False

to save the record.
 

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