Run time Error 3075

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tuer
    New Member
    • Mar 2011
    • 1

    Run time Error 3075

    Hi Experts,

    I am trying to makes this Dlookup work, but I keep getting the message:

    Run time errpr '3075' - syntax error (missing operatar in query expression.

    TOP50_Navn = DLookup("[TOP50_Navn]", "InternKundeMap pingFil", "Customer_Numbe r=" & Customer_Number )

    any suggestions??

    thanks,
    TUer
  • Megalog
    Recognized Expert Contributor
    • Sep 2007
    • 378

    #2
    I'm guessing "Customer_Numbe r" might actually be a string value? Try:

    Code:
    TOP50_Navn = DLookup("[TOP50_Navn]", "InternKundeMappingFil", "[Customer_Number] = '" & Customer_Number & "'")
    Or maybe your variables arent declared correctly, and you need something like this:
    Code:
    TOP50_Navn = DLookup("[TOP50_Navn]", "InternKundeMappingFil", "Customer_Number=" & clng(Customer_Number))

    Comment

    Working...