Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Syntax error (Access 2000)

    I have an syntax error, missing operatior in the following code:
    Dim StrSQL As String
    StrSQL = " DLookUp('[items2]','[products]','[ProductID]=' & [ProductID])"
    Me!Stueck.ControlSource = StrSQL

    Can yo help me find the error ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Syntax error (Access 2000)

    Why do you want to set the control source in code? It's much easier to set it in design view.

    The control source should begin with =

    StrSQL = "=DLookup(...)"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •