Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DLookUp function returns #Error in Subreport (2003)

    On the startup form of the attached mdb, please select, e.g., 24 January 2006 and click the Report button.
    I don't understand why the expression
    <font color=448800>=nz(DLookUp("1q","previsioni","Giorno =#" & Format([giorno],"mm-gg-aaaa") & "# and ora=8"))+nz(DLookUp("2q","previsioni","Giorno=#" & Format([giorno],"mm-gg-aaaa") & "# and ora=8")) </font color=448800>
    in the Testo114 text box in the RMovEn subreport gives an #Error.

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

    Re: DLookUp function returns #Error in Subreport (2003)

    Because the field names 1q and 2q begin with a digit, you must put square brackets around them: [1q] and [2q] respectively.

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: DLookUp function returns #Error in Subreport (2003)

    Thank you Hans

Posting Permissions

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