• DLookup (Access 2000)

    • This topic has 1 reply, 2 voices, and was last updated 20 years ago.
    Author
    Topic
    #419437

    In my report i have a control source with DLookup that is all right.However, when i try to put it as code in the OnOpen event of the
    report,i receive the mseeage that you have entered an expression that has no value
    Me![TxtQuantityOutput].RecordSource = DLookup(“Quantity”, “qryBlOutput”, “ProductID = ” & [Productid])

    What may be the reason ?

    Viewing 0 reply threads
    Author
    Replies
    • #947045

      Put it in the On Load event instead of in the On Open event. On Open occurs before the first records has been loaded, so ProductID is not known yet. On Load occurs when the first record is loaded.

    Viewing 0 reply threads
    Reply To: DLookup (Access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: