Hi Guys,
I have a form called frmOpenTickets, a user encounter this form from a menu list. This form stores all the tickets that have a ticketstatus of "Open". The user would open this form if he/she decides to close the ticket. On form I added a checkbox stating that "Please check to close this ticket once you received notification from specialist."
This checkbox is not enabled. It would only be enabled if the RouteTo field is filled in with data.
I can't get the checkbox to turn enabled, please look at my code probably I am doing something wrong..thanks
Private Sub Check158_Click()
If Me.Route_To = " " Then
Me.Check158.Enabled = True
Me.Check158.SetFocus
Me.Date_Closed = Now()
Me.TicketStatus = "Closed"
Me.Lock = True
DoCmd.Close acForm, "HelpDeskCalls", acSaveYes
DoCmd.OpenForm "TicketOption"
MsgBox "The ticket is saved", vbInformation
End Sub
I have a form called frmOpenTickets, a user encounter this form from a menu list. This form stores all the tickets that have a ticketstatus of "Open". The user would open this form if he/she decides to close the ticket. On form I added a checkbox stating that "Please check to close this ticket once you received notification from specialist."
This checkbox is not enabled. It would only be enabled if the RouteTo field is filled in with data.
I can't get the checkbox to turn enabled, please look at my code probably I am doing something wrong..thanks
Private Sub Check158_Click()
If Me.Route_To = " " Then
Me.Check158.Enabled = True
Me.Check158.SetFocus
Me.Date_Closed = Now()
Me.TicketStatus = "Closed"
Me.Lock = True
DoCmd.Close acForm, "HelpDeskCalls", acSaveYes
DoCmd.OpenForm "TicketOption"
MsgBox "The ticket is saved", vbInformation
End Sub