I
Imran J Khan
I have a formA that opens to show either existing records or new record
depending on the cmd Button used to open it.
When open for new record, it opens without error. But when moving to a new
reocrd after opening either as a new reocrd or existing reocord, I have the
following error:
"-2147352567 (80020009)
There is an invalid use of the .(dot) or ! operator or invalid parenthses.
You may have entered an invalid identifier or typed parenthses following the
null constant."
I chose the debug button, and it takes me the this procedure:
Public Sub setDTId()
If Nz(DTId, "") = "" Then
DTId = "ABC"
End If
End Sub
The second line ' If Nz(deliveryTermId, "") = "" Then' is highlighted. If I
press F8, it comes up with the same error message above.
I can't fiqure out what is wronge.
Imran
depending on the cmd Button used to open it.
When open for new record, it opens without error. But when moving to a new
reocrd after opening either as a new reocrd or existing reocord, I have the
following error:
"-2147352567 (80020009)
There is an invalid use of the .(dot) or ! operator or invalid parenthses.
You may have entered an invalid identifier or typed parenthses following the
null constant."
I chose the debug button, and it takes me the this procedure:
Public Sub setDTId()
If Nz(DTId, "") = "" Then
DTId = "ABC"
End If
End Sub
The second line ' If Nz(deliveryTermId, "") = "" Then' is highlighted. If I
press F8, it comes up with the same error message above.
I can't fiqure out what is wronge.
Imran