D
Dean Collins
I am using a textbox to extract the date into my routine.
However, I get an "Invalid use of null" error
When I try to run this even with data entered in the
correct text box. The text box is General date with am
input mask of 99/99/99;
My code is below
Many thanks in advance.
Dean Collins
Private Sub ER_Date_AfterUpdate()
Dim TextBox1 As Date
Dim TextBox2 As Integer
Forms!Main_Edited!ER_Yr_1.SetFocus
TextBox1 = Forms!Main_Edited!Yr_1
Forms!Main_Edited!EnrolDay2002 = 1
TextBox2 = Forms!Main_Edited!EnrolDay2002
Debug.Print TextBox1
Debug.Print TextBox2
End Sub
However, I get an "Invalid use of null" error
When I try to run this even with data entered in the
correct text box. The text box is General date with am
input mask of 99/99/99;
My code is below
Many thanks in advance.
Dean Collins
Private Sub ER_Date_AfterUpdate()
Dim TextBox1 As Date
Dim TextBox2 As Integer
Forms!Main_Edited!ER_Yr_1.SetFocus
TextBox1 = Forms!Main_Edited!Yr_1
Forms!Main_Edited!EnrolDay2002 = 1
TextBox2 = Forms!Main_Edited!EnrolDay2002
Debug.Print TextBox1
Debug.Print TextBox2
End Sub