Hi!
I want to let the user change the default value for a filed from another form and I am using the following code:
Private Sub cmdOk_Click()
Forms![TelefoniImport_f]![cmdSnittTid].DefaultValue = Me.cmdSnittTid.Value
Forms![TelefoniImport_f]![cmdSnittTid].Value = Me.cmdSnittTid.Value
DoCmd.Close
End Sub
The problem is that when I check properties and default value for cmdSnittTid, then it is the same as before the change.
But when I run debug and checking the default value there it is correct.
So what do I do wrong?
Thanks for all help. Markus Larsson
I want to let the user change the default value for a filed from another form and I am using the following code:
Private Sub cmdOk_Click()
Forms![TelefoniImport_f]![cmdSnittTid].DefaultValue = Me.cmdSnittTid.Value
Forms![TelefoniImport_f]![cmdSnittTid].Value = Me.cmdSnittTid.Value
DoCmd.Close
End Sub
The problem is that when I check properties and default value for cmdSnittTid, then it is the same as before the change.
But when I run debug and checking the default value there it is correct.
So what do I do wrong?
Thanks for all help. Markus Larsson