Hi guys,
i got this error runtime 2471, the expression you entered as a query parameter produces this error: '[Model]'
the code is this
I am 100% sure there is a field named Model in TblModel. What is the issue here? Thanks!
n.b modelNumber is a string variable datatype
i got this error runtime 2471, the expression you entered as a query parameter produces this error: '[Model]'
the code is this
Code:
modelNumber = Worksheet.Cells(excelLine, "B")
modelNumber = "'" & modelNumber & "'"
modelID = DLookup("[ModelID]", "TblModel", "[Model] = " & modelNumber & "")
n.b modelNumber is a string variable datatype