Results 1 to 4 of 4
  1. #1
    seth1685 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    10

    Syntax Error

    Hello, I can't work out why:



    If (IsNull(DLookup("[Module]", "Table1", "[Module]=" & Me.Combo23)))

    Is generating a syntax error when the code I based it on:

    If (IsNull(DLookup("[External Examiner]", "Together", "[External Examiner]=" & Forms![Copy of Add EE Assignment]!Combo21)))

    Isn't.

    Any ideas? Thanks.

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    What is the datatype of the Module field in table1?

  3. #3
    seth1685 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    10
    Text. Think I've got it now.

    Thanks!

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Can you post your solution for the benefit of others who may come across this thread while looking for a solution to a similar question?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Compile Error Syntax Error
    By Mohamed in forum Access
    Replies: 3
    Last Post: 10-06-2011, 10:12 AM
  2. SQL Syntax Error
    By NoiCe in forum Queries
    Replies: 5
    Last Post: 04-01-2011, 11:43 AM
  3. Incomplete Syntax Clause (syntax error)
    By ajetrumpet in forum Programming
    Replies: 4
    Last Post: 09-11-2010, 10:47 AM
  4. Syntax error
    By smikkelsen in forum Access
    Replies: 6
    Last Post: 04-28-2010, 09:38 AM
  5. sql syntax error
    By SMAlvarez in forum Access
    Replies: 1
    Last Post: 03-12-2009, 09:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums