I tried:
Code:
Dim CheckCount As Long
CheckCount = DCount("CPOProjectNum", "qryMyProj", "CPOProjectNum = '" & Forms!frmMain!frmMainInfo!CPOProjectNum & "'")
If CheckCount = 0 Then
Exit Sub
Else
If IsNull(DLookup("CPOProjectNum", "qryMyProj", "CPOProjectNum = '" & Forms!frmMain!frmMainInfo!CPOProjectNum & "'")) Then
Me.Follow.Visible = True
Me.Following.Visible = False
Me.NoFollow.Visible = False
Else
Me.Follow.Visible = False
Me.Following.Visible = True
Me.NoFollow.Visible = True
End If
End If
That gives me an error of "You entered an expression that has no value"