Hmm not sure what you mean by code that does reference any form element. The onclick button checks the value of 4 form elements. The Call Location text box, the ComboType, Beat textbox and ReceivedDate and time these 4 are evaluated for a null value.
If the location, type or beat are null the message is shown. If the user places a value in those 3 form elements and clicks the button then the code runs as expected.
It is only the textbox for the ReceivedDatetime that is not being evaluated properly on the 2nd click?
I have included the entire code block for that button click.
Private Sub BtnPrint1_Click()
If IsNull(Location) Then
MsgBox "Call Location Is Required"
ElseIf IsNull(ComboType) Then
MsgBox "Call Type Is Required"
ElseIf IsNull(Beat) Then
MsgBox "Call Beat Is Required"
ElseIf Trim(ReceivedDateTime & "") = "" Then
MsgBox "Call Received Date/Time Is Required"
DoCmd.GoToRecord , , acNewRec
txtCodeThree.Visible = True
txtCodeThree.Text = ""