S
Stapes
Hi
I am trying to stop a user adding data into a subform before it's
parent record has been created, so I am testing the key field of the
parent to see if there is one:
If Forms![Order Form]![Order Details].Form!PK_Order = "" Then
MsgBox "You need to start by clicking the New Order / Enquiry
button or the Quotation button."
Else
MsgBox "Order number '" & (Forms![Order Form]![Order Details].Form!
PK_Order) & "'"
Now the display following quite clearly shows me, the value of
PK_Order is '' (that's the quotes on either side).
So, if it can show me the field is blank, why can't it see the field
as blank itself?
The air is blue here with my cussing.
Stapes
I am trying to stop a user adding data into a subform before it's
parent record has been created, so I am testing the key field of the
parent to see if there is one:
If Forms![Order Form]![Order Details].Form!PK_Order = "" Then
MsgBox "You need to start by clicking the New Order / Enquiry
button or the Quotation button."
Else
MsgBox "Order number '" & (Forms![Order Form]![Order Details].Form!
PK_Order) & "'"
Now the display following quite clearly shows me, the value of
PK_Order is '' (that's the quotes on either side).
So, if it can show me the field is blank, why can't it see the field
as blank itself?
The air is blue here with my cussing.
Stapes