About the code:
You have parentheses where they shouldn't be:
Code:
Private Sub (ComboBoxName)_AfterUpdate()
Me.(ListName).Requery
End Sub
Private Sub (ButtonName)_GotFocus() '<<-- GotFocus event??? Better would be the click event
On Error Resume Next
If IsNull(TextBoxName) Then '<<-- I would use IsNull(Me.TextBoxName) since TextBoxName does not appear to be a variable
MsgBox "Error message here", vbCritical, "Error"
Me.(TextBoxName) = Empty
Me.Recalc
Else
Me.Recalc
End If
Me.Recalc
End Sub
Maybe
Code:
Private Sub ComboBoxName_AfterUpdate()
Me.ListName.Requery
End Sub
Private Sub ButtonName_Click()
On Error Resume Next
If NZ(Me.TextBoxName,"") = "" Then
MsgBox "Error message here", vbCritical, "Error"
Me.TextBoxName = Empty ' <<-- don't understand why this line is here. Me.TextBoxName is already NULL/Empty
Me.Recalc ' <<-- not necessary because of the reclac after "END IF"
Else
Me.Recalc ' <<-- not necessary because of the reclac after "END IF"
End If
Me.Recalc
End Sub