Morning All!
This is my 1st post. I have a form with a combo box listing the different status of the form (a, b, or c). I want a different date box to come up for each of the status. I have set up 3 date boxes (A_Date, B_Date, C_Date) in the form and set them all to visible = no. I have the following code and it works perfectly for 1:
If Status = "a" Then
TB1: A_date.Visible = True
A_date.SetFocus
Else
Me.A_date.Visible = False
End If
But i dont seem to be able to alter the code to get it to work for the others. Even if i change the above code to say B_Date rather than A_Date it doesnt seem to like it.
Hopefully I am doing something simple wrong. Any help would be greatly appreciated.
Thank you
This is my 1st post. I have a form with a combo box listing the different status of the form (a, b, or c). I want a different date box to come up for each of the status. I have set up 3 date boxes (A_Date, B_Date, C_Date) in the form and set them all to visible = no. I have the following code and it works perfectly for 1:
If Status = "a" Then
TB1: A_date.Visible = True
A_date.SetFocus
Else
Me.A_date.Visible = False
End If
But i dont seem to be able to alter the code to get it to work for the others. Even if i change the above code to say B_Date rather than A_Date it doesnt seem to like it.
Hopefully I am doing something simple wrong. Any help would be greatly appreciated.
Thank you