Saving records when opening a new form (1 Viewer)

battenberg

Burning candles both ends
Local time
Today, 23:10
Joined
Sep 25, 2006
Messages
118
Hi

In my database I have certain fields which when dbl clicked move me to a new form. What code should I be researching to make sure that the forms field values are committed to the tables before opening the new form??

is it: docmd save or a recordset.update?

thanks
 

freakazeud

AWF VIP
Local time
Today, 19:10
Joined
Sep 10, 2005
Messages
221
re:

Hi,
you could try:

If Me.Dirty = True Then Me.Dirty = False

HTH
Good luck
 

battenberg

Burning candles both ends
Local time
Today, 23:10
Joined
Sep 25, 2006
Messages
118
is that a save command.. what does it mean?
 

freakazeud

AWF VIP
Local time
Today, 19:10
Joined
Sep 10, 2005
Messages
221
re:

Hi,
Foms have a dirty property which can be set to false if it is true to force a record save to the underlying data source.
HTH
Good luck
 

battenberg

Burning candles both ends
Local time
Today, 23:10
Joined
Sep 25, 2006
Messages
118
thankyou very much...
I can put this in the dbl click event of a field before it opens a new form?
 

freakazeud

AWF VIP
Local time
Today, 19:10
Joined
Sep 10, 2005
Messages
221
re:

Sure...
You're welcome.
Good luck on future projects!
 

Users who are viewing this thread

Top Bottom