Keith Nichols
Registered User.
- Local time
- Today, 10:46
- Joined
- Jan 27, 2006
- Messages
- 431
Lots and lots of posts on this subject so it is something that obviously gives lots of trouble to newbies such as myself.
The code below works fine if the control is not null but gives Error 94 - invalid use of null when the control is null. I have gone around in circles with this - what am I doing wrong?
The code below works fine if the control is not null but gives Error 94 - invalid use of null when the control is null. I have gone around in circles with this - what am I doing wrong?
Code:
PrjNumber = Me!Projectnumber
If IsNull(PrjNumber) Then
MsgBox "Project number is null "
Else: PrjNumber = " project " & PrjNumber
MsgBox "Project number is not null "
End If