VBA Check for change in record (1 Viewer)

marrett

Registered User.
Local time
Today, 21:43
Joined
Sep 8, 2000
Messages
43
I want to check a form to see if the user has made any changes. This Chaeck has to take place when a cancel button or save button is pressed. I dont want the user to be propted if no changes have been made.


Thnaks,

Maria
 

David R

I know a few things...
Local time
Today, 15:43
Joined
Oct 23, 2001
Messages
2,633
Look into the Dirty() property for Access2k. I think in earlier versions you have to use some checks within BeforeUpdate.

HTH,
David R
 

marrett

Registered User.
Local time
Today, 21:43
Joined
Sep 8, 2000
Messages
43
-Thanks it works great!
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 15:43
Joined
Feb 28, 2001
Messages
27,188
Dirty also applies in AC97. It SURELY applies to the bound controls of a form. However, once an update occurs, all Dirty flags get reset. So the best time to check is in the Form_BeforeUpdate routine. Which so conveniently is the one that supports the Cancel parameter.
 

Users who are viewing this thread

Top Bottom