ok i have searched the forums first and while there is a fair few on invalid use of null i couldnt really find any like this
i have a form where i need the user to enter a number to equal a formula that enables some buttons but if i leave it as null i get the invalid use of null msg is there away to get round this?
If CDbl(Me.txtREGO) = CInt((x) / CInt(Me.txtSERIAL)) Then
Me.cmdQRYREFRESH.Enabled = True
Me.cmdREFRESH.Enabled = True
Else: Me.cmdQRYREFRESH.Enabled = False
Me.cmdREFRESH.Enabled = False
End If
i have a form where i need the user to enter a number to equal a formula that enables some buttons but if i leave it as null i get the invalid use of null msg is there away to get round this?
If CDbl(Me.txtREGO) = CInt((x) / CInt(Me.txtSERIAL)) Then
Me.cmdQRYREFRESH.Enabled = True
Me.cmdREFRESH.Enabled = True
Else: Me.cmdQRYREFRESH.Enabled = False
Me.cmdREFRESH.Enabled = False
End If