Results 1 to 4 of 4

Thread: DLookUp

  1. #1
    Join Date
    Sep 2005
    Posts
    313

    Unanswered: DLookUp

    Hi,

    Input table:
    Vendor Name Vendor Code
    NBA__________0001234

    I used below function in the query:
    Date Cashed: DLookUp([Vendor Code],"Input",[Vendor Name]="NBA")

    It shows : 1234

    I used it Date Cashed: cstr(DLookUp([Vendor Code],"Input",[Vendor Name]="NBA"))

    it still shows: 1234

    How can I output the same result as the input data, "0001234"

    Thanks

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Read about the Format() function.

    ProTip: 0000000.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Sep 2005
    Posts
    313
    Date Cashed: DLookUp([Date Issued],"Input",[Vendor Name]="NBA")


    I tried it.

    It cannot be shown the correct date value, but I checked the table, I already input the correct date value (11/2/2005), it shows 2.00000+e liket that.

    Why?

  4. #4
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    Probably because you did something wrong. It might have something to do with the fact you are now returning a datetime from dlookup instead of an integer, just a guess...
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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