on get focus code updates default value field issue

  • Thread starter Thread starter Ran BD
  • Start date Start date
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.
 
Ran,

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

- Steve Schapel, Microsoft Access MVP
 
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.
 
Back
Top