DoCmd.RunCommand acCmdSaveRecord

S

Sapphire

Hi,

This command is giving me an error when used in ADP

DoCmd.RunCommand acCmdSaveRecord

Could anybody please tell me how to work around this?

Thanks
 
J

J. Clay

Really basic/simple explanation:

A form has a property "DIRTY" that can be true or false. If it is being
edited (either as a new record or existing) it will be true. If you set it
to false, it forces the record to be saved. It does basically the same
thing as acCmdSaveRecord, but in a manner that will not cause errors.

I would suggest looking it up in help for more/better details.

HTH,
Jim
 
S

Sapphire

Thanks a lot
-----Original Message-----
Really basic/simple explanation:

A form has a property "DIRTY" that can be true or false. If it is being
edited (either as a new record or existing) it will be true. If you set it
to false, it forces the record to be saved. It does basically the same
thing as acCmdSaveRecord, but in a manner that will not cause errors.

I would suggest looking it up in help for more/better details.

HTH,
Jim





.
 
Top