Results 1 to 2 of 2
  1. #1
    RickM is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2009
    Posts
    15

    Dlookup in form returns #error

    I have form with a text box where I would like to retreive the value in a field [SumofCost]from a query [qryTotalCostinBox]
    This is what I have in the record source of the text box on the form
    =DLookUp("SumofCost","qryTotalCostinBox")


    It returns #ERROR
    The value it should return is currency.
    Any ideas where my problem is?
    Thanks

  2. #2
    RickM is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2009
    Posts
    15
    I forgot the [] around the fields

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

Similar Threads

  1. Form Dlookup macro
    By lukekelly in forum Forms
    Replies: 2
    Last Post: 01-20-2010, 06:24 AM
  2. SELECT returns more than one row
    By 83dons in forum Queries
    Replies: 1
    Last Post: 01-13-2010, 11:28 AM
  3. Replies: 2
    Last Post: 11-04-2009, 09:45 PM
  4. Replies: 2
    Last Post: 11-02-2009, 10:14 PM
  5. Replies: 4
    Last Post: 09-21-2009, 01:51 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