Results 1 to 4 of 4
  1. #1
    ccguillermo is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    5

    get a value from query in my report!!

    Hi,
    First i want to apology for this i already post this problems last week and two day ago on some place else. The problems is that I try to get a value from field on my report from a query;
    But when I did the DlookUp Function:
    =Dlookup(“Filedname”, :QueryName”, “UserID = “ & [UserId])
    I get a #errror in my reports and I try to do thios too to see if I can get some value but nothing
    =Dlookup(“Filedname”, :QueryName”)


    And get the same #error and not the values; I don’t know if the problems is the the value of the field is a calculate field that I call [T-850].
    I really appreciate you time and you help.
    Thank you


    Carlos

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Well,

    :QueryName”

    should be

    "QueryName”
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ccguillermo is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    5
    hi
    Thank you for you replay but it is a typo. when I type the message.

    Thank you

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    What is the data type of UserID in the table? Have you double checked the spelling of the table/query/field names?

    Just an FYI, it's always best to copy/paste things from your application to here, to avoid that kind of thing.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 07-15-2011, 10:59 PM
  2. How to use many query in one report
    By dododo in forum Access
    Replies: 3
    Last Post: 06-30-2011, 08:52 PM
  3. Report based on query + sub-report (1:N relation)
    By BayerMeister in forum Reports
    Replies: 1
    Last Post: 08-19-2010, 03:26 AM
  4. Replies: 3
    Last Post: 05-21-2010, 03:57 PM
  5. Replies: 1
    Last Post: 02-02-2009, 05:52 AM

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