Results 1 to 4 of 4
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2002
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Need some DLookup Help For Customer

    My table is Named Customers and the control source is TaxRate


    I have an unbound textbox on my form (Text122) that I need for this value to show up in.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    What criteria determines the correct TaxRate? What are field names? What have you tried?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2002
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Each Customer has their own Tax Rate. Field name for TaxRate is TaxRate. I have tried using

    DLookup("TaxRate", "Customers", "CustomerID = " & Forms![OrderDetails]!CustomerID)
    I get #Name? as the field criteria.
    The criteria is linked to each Customer by the primary key which is CustomerID
    I want to lookup the TaxRate form the Customers table when a Customer is chosen on my OrderDetails form it will show THAT customers TaxRate.

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2002
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Thanks, I finally got it. Had to change my Combo Lookup and then do a Column(2) thing.

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

Similar Threads

  1. Run Report For Each Customer
    By rivergum_23 in forum Queries
    Replies: 1
    Last Post: 04-29-2012, 12:53 PM
  2. Replies: 1
    Last Post: 12-24-2011, 08:48 AM
  3. Customer database problem
    By paasan in forum Access
    Replies: 2
    Last Post: 04-21-2011, 11:05 AM
  4. Add activity for each customer
    By nostr4d4m in forum Queries
    Replies: 11
    Last Post: 03-25-2011, 09:08 AM
  5. Sorting by customer
    By eibooo in forum Queries
    Replies: 1
    Last Post: 05-25-2010, 12:00 AM

Tags for this Thread

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