See a change that has not been saved

  • Thread starter Thread starter KillMeTwice
  • Start date Start date
K

KillMeTwice

Is it possible to catch the event that a user has changed something in
a form when he is just switching between the windows?

The two forms have data depending on eachother and when the user makes
a change in one and click to activate the other form I want to know if
he changed something (without him saving!!). I want to avoid doing a
Refresh in the first form and a Requery in the second form if it is
not necessary!

Sincerely

Hans Kristian Eide
 
Hi,

Some thing like this in the Deactivate event of your form should work.

If Me.dirty = true then
'Do what you need to do here
'To save the data you could:
Me.dirty = false
End If

HTH

Rico
 
if you want to see a change that has not been saved then you shoudl be usign
Access Data Projects.

(which are reliable enough to always save changes when you tell it to)
 

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

Back
Top