I may have made a mistake with this...
I have a table called tblSKUMessage with two fields: [SKU#] and [SKUMessage]
I am now trying to retrieve the SKUMessage with this code:
When I run this I get error 3075: Syntax error in date expression 'SKU#='FUTK6900".
My guess is that it thinks that the variable to look for is a date becasue of the # symbol. I will not use special characters like this for variable names in the future but for now, how can I get around this problem?
Thanks
mafhobb
I have a table called tblSKUMessage with two fields: [SKU#] and [SKUMessage]
I am now trying to retrieve the SKUMessage with this code:
Code:
Dim SKU as String
SKU = "FUTK6900"
'Bring the Notes on the SKU from the SKU Message table
Me.txtSKUNotes = Nz(DLookup("SKUMessage", "tblSKUMessage", "SKU#= '" & SKU & "'"), "No Message for this SKU.")
When I run this I get error 3075: Syntax error in date expression 'SKU#='FUTK6900".
My guess is that it thinks that the variable to look for is a date becasue of the # symbol. I will not use special characters like this for variable names in the future but for now, how can I get around this problem?
Thanks
mafhobb