Results 1 to 3 of 3
  1. #1
    bgephart is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2012
    Posts
    15

    DLookup in Control Source

    I am trying to add a new unbound text box using a DLookup expression in the control source.

    Code:
    =DLookUp("[title]","[Books]","[review]=" & [Forms]![Check In Form]![Book ID])
    I have been over and over this like crazy, and I still get "#Error" in the text box. Is there something obvious that I'm doing wrong? In case it matters, the table "Books" is an linked Excel spreadsheet/table.

    Thanks -

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Is your Book ID field text or numeric?
    If text, you will need text qualifiers in the third argument.

  3. #3
    bgephart is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2012
    Posts
    15
    Quote Originally Posted by JoeM View Post
    Is your Book ID field text or numeric?
    If text, you will need text qualifiers in the third argument.
    Thank you! That did it!

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

Similar Threads

  1. DLookup() for Text Box Control Source
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 02-06-2012, 02:21 PM
  2. Replies: 5
    Last Post: 10-13-2011, 03:36 PM
  3. Dlookup as Control Source
    By alsoto in forum Forms
    Replies: 1
    Last Post: 08-28-2011, 07:05 PM
  4. control source
    By nashr1928 in forum Forms
    Replies: 5
    Last Post: 03-12-2011, 09:31 PM
  5. Control Source
    By sarah54 in forum Access
    Replies: 1
    Last Post: 03-07-2011, 09:00 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