on get focus code updates default value field issue

R

Ran BD

Hi guys' it's me again.

imp using this statement:
Me.Mis_Han.DefaultValue = DMax("[Mis_Han]", "Sapak_Tbl") + 1 to get an
updated value of the field Mis_han.
this statement - entered on the on get focus property, stores a number in
the default value property.
the next time I'm opening the form the previous value is being displayed.
 
S

Steve Schapel

Ran,

Setting form or control properties via VBA code only applies to the
current session.

- Steve Schapel, Microsoft Access MVP
 
R

Ran BD

I know that, but if you'll read threw the msg I wrote you'll see that access
behaving strange in this current incident.
thanks
Steve Schapel said:
Ran,

Setting form or control properties via VBA code only applies to the
current session.

- Steve Schapel, Microsoft Access MVP


Hi guys' it's me again.

imp using this statement:
Me.Mis_Han.DefaultValue = DMax("[Mis_Han]", "Sapak_Tbl") + 1 to get an
updated value of the field Mis_han.
this statement - entered on the on get focus property, stores a number in
the default value property.
the next time I'm opening the form the previous value is being displayed.
 

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