Hello,
I'm setting with vba the default values of the fields of my form.
For some fields, I don't get the default value but a "#Name?" instead.
As soon as I start editing the record (by typing some text in another field), the "#Name?" is changed to the default value of the field as set in the table. So the default value set by code is completely ignored !
Here is how I set the default value:
Rem: Here it is on subform, but the same occurs for a field on the main form too.
Any idea how to get it work ?
Thanks,
Laurent
PS: If no default value in the table, then the "#Name?" changes into a blank field.
I'm setting with vba the default values of the fields of my form.
For some fields, I don't get the default value but a "#Name?" instead.
As soon as I start editing the record (by typing some text in another field), the "#Name?" is changed to the default value of the field as set in the table. So the default value set by code is completely ignored !
Here is how I set the default value:
Code:
sfrm.txtItineraire.DefaultValue = "DefaultValue" 'Me.txtItinéraire
Any idea how to get it work ?
Thanks,
Laurent
PS: If no default value in the table, then the "#Name?" changes into a blank field.