My problem lies in trying to get vba to check the field
name staffid#....I have try many variation on the line below
If IsNull "(qryckstaff.[staffid#])" Then
Button 14 is running a query to find out if fields are
null....to then disable buttons on the same form...this
form is only buttons...like the button that runs the query!
--------------------------------------
Private Sub Command14_Click()
On Error GoTo Err_Command14_Click
Dim stDocName As String
stDocName = "qryckstaff"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Me!Command9.Enable = True
Else
Me!Command9.Enable = False
End If
Exit_Command14_Click:
Exit Sub
name staffid#....I have try many variation on the line below
If IsNull "(qryckstaff.[staffid#])" Then
Button 14 is running a query to find out if fields are
null....to then disable buttons on the same form...this
form is only buttons...like the button that runs the query!
--------------------------------------
Private Sub Command14_Click()
On Error GoTo Err_Command14_Click
Dim stDocName As String
stDocName = "qryckstaff"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Me!Command9.Enable = True
Else
Me!Command9.Enable = False
End If
Exit_Command14_Click:
Exit Sub