• using a date as criteria for DLookup

    Author
    Topic
    #1768504

    Hi All….i am trying to get a text box to fill using the DLookup function….this is what I have for the control source…
    =DLookUp(“[tblConversionFactors]![ConversionFactor]”,”tblConversionFactors”,”[ConversionDate] =” & [Forms]![frmTransactionsEntryEdit]![txtTransactionDate])

    it returns a NULL even though I know there is a factor for the txtTransactionDate on the form….any ideas TIA

    Viewing 0 reply threads
    Author
    Replies
    • #1779718

      Try this:

      =DLookUp(“[tblConversionFactors]![ConversionFactor]”,”tblConversionFactors”,”[ConversionDate] =#” & [Forms]![frmTransactionsEntryEdit]![txtTransactionDate] & “#”)

      • #1779720

        thanx…will give it a try

        • #1779722

          You also might think about changing the [txtTransactionDate]field to a date field in your table design, that is if this date field is a txt field.

    Viewing 0 reply threads
    Reply To: using a date as criteria for DLookup

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

    Your information: