Ceejay64
Bass Playin' Biker Chick
- Local time
- Today, 10:27
- Joined
- Oct 2, 2002
- Messages
- 74
Hi,
I'm doing *something* wrong here. What I need to do seems simple enough, but I can't seem to write the code correctly.
When my form opens, I need it to check the date/time in a certain field and if it is over 48 hrs, pop up a messagebox indicating this. BUT... This is only valid if there is an entry in a later operation field. If that field is blank, I don't want the 48 hour check to matter.
I have gotten the 48 hr check to work just fine, but I can't figure out how to add the instruction for checking for a value in the other box. Here's the if statement so far:
If Me.txtDateFeed > DateAdd("h", 48, [4DateStopTime]) Then
Call MsgBox("Primer has Expired. Initiate a New Doc Card", vbOKOnly)
lblExpired.Visible = True
End If
Any way I have tried to add the rest, I get error messages in the code window. How and where do I add the and isnull(5LotNum) part (or whatever it may be)??
Thanks in advance!
I'm doing *something* wrong here. What I need to do seems simple enough, but I can't seem to write the code correctly.
When my form opens, I need it to check the date/time in a certain field and if it is over 48 hrs, pop up a messagebox indicating this. BUT... This is only valid if there is an entry in a later operation field. If that field is blank, I don't want the 48 hour check to matter.
I have gotten the 48 hr check to work just fine, but I can't figure out how to add the instruction for checking for a value in the other box. Here's the if statement so far:
If Me.txtDateFeed > DateAdd("h", 48, [4DateStopTime]) Then
Call MsgBox("Primer has Expired. Initiate a New Doc Card", vbOKOnly)
lblExpired.Visible = True
End If
Any way I have tried to add the rest, I get error messages in the code window. How and where do I add the and isnull(5LotNum) part (or whatever it may be)??
Thanks in advance!