tina hayes
Registered User.
- Local time
- Today, 14:24
- Joined
- Jul 28, 2004
- Messages
- 37
I have a new box form, which chooses to add the new box to the main form. When you click the continue button it asks if you would like to save details to the main form you say yes and the main form appears with the information on.
What I am trying to do is;
On the properties of the exit button I am choosing “on exit” and coding it so that when it is the set the value in the deposit table is default to that days date with the option of changing.
The code I adds a date in but is not “todays date”
Please help
The code I have so far is
Private Sub continue_Exit(Cancel As Integer)
Dim todaysdate As Date
Dim stDocName As String
stDocName = "Main Form"
Forms![main form]![Depositdate].SetFocus
Forms![main form]![Depositdate].Text = todaysdate
End Sub
What I am trying to do is;
On the properties of the exit button I am choosing “on exit” and coding it so that when it is the set the value in the deposit table is default to that days date with the option of changing.
The code I adds a date in but is not “todays date”
Please help
The code I have so far is
Private Sub continue_Exit(Cancel As Integer)
Dim todaysdate As Date
Dim stDocName As String
stDocName = "Main Form"
Forms![main form]![Depositdate].SetFocus
Forms![main form]![Depositdate].Text = todaysdate
End Sub