PurpleUnicorn
Programmer
I am getting the following the error “2465 Microsoft Access can’t find the field “|” referred to in your expression” from the following piece code.
[blue]
If Me!Loc = "REQ" Then
Me![COND] = "-----"
Me!PRICE = 0
Me!QUANTITY = 0
Me!MFG = "---"
Me!Loc = "RFQ"
Me!PARTNO = "---"
Me!DC = "---"
Me!P_Box = ""
Me!QTY = 0
Me!TARGET = 0
Me!Text42 = ""
Me!LEAD_TIME = ""
Me!Description = ""
End If
[/blue]
This code is the last to run in the form “before_update” procedure. It is followed by the End Sub statement.
If I comment out all of the code between the if – end if statements, the code runs error free. Once I include even one line of the code – the 2465 error is generated. Any suggestions??
Thanks
[blue]
If Me!Loc = "REQ" Then
Me![COND] = "-----"
Me!PRICE = 0
Me!QUANTITY = 0
Me!MFG = "---"
Me!Loc = "RFQ"
Me!PARTNO = "---"
Me!DC = "---"
Me!P_Box = ""
Me!QTY = 0
Me!TARGET = 0
Me!Text42 = ""
Me!LEAD_TIME = ""
Me!Description = ""
End If
[/blue]
This code is the last to run in the form “before_update” procedure. It is followed by the End Sub statement.
If I comment out all of the code between the if – end if statements, the code runs error free. Once I include even one line of the code – the 2465 error is generated. Any suggestions??
Thanks