Hi,
I am trying to set the default value for a form field to the last value entered in that field. For example if somebody uses the form today and enters ABCD then when a new user opens the form tomorrow the field will automatically have ABCD inserted.
I have tried using the following code in expression builder
=DLookUp("[016]","[TblEvents]","[ID] =form![ID]")
My table name is TblEvents
The field name is 016
If I change the code to
=DLookUp("[016]","[TblEvents]","[ID]=1")
this sets the default value to that entered where the form ID is 1.
What I really need is instead of ID being 1, for it to be new form ID minus 1.
Hope this makes sense.
Should I try to do this another way?
Liam
If you can help, GREAT
If I can help, EVEN BETTER
I am trying to set the default value for a form field to the last value entered in that field. For example if somebody uses the form today and enters ABCD then when a new user opens the form tomorrow the field will automatically have ABCD inserted.
I have tried using the following code in expression builder
=DLookUp("[016]","[TblEvents]","[ID] =form![ID]")
My table name is TblEvents
The field name is 016
If I change the code to
=DLookUp("[016]","[TblEvents]","[ID]=1")
this sets the default value to that entered where the form ID is 1.
What I really need is instead of ID being 1, for it to be new form ID minus 1.
Hope this makes sense.
Should I try to do this another way?
Liam
If you can help, GREAT
If I can help, EVEN BETTER