Results 1 to 3 of 3
  1. #1
    W.Chan is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2012
    Posts
    1

    Autofill based on Autonumber Field?

    Hi,

    I am currently trying to build a small database and I am stuck with a small problem. I currently have a table for the list of customers and a table for transactions. I have set the CustomerID as a Autonumber and also as the primary key.



    In the transaction table, I want to be able to put in the CustomerID which then populate the first and last number of the customer based from the table in list of clients.

    I am not sure how to go about doing this and some guidance would very much be appreciated.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The 'first and last number of the customer based from the table in list of clients' means nothing to me.

    Are you doing data entry through forms? If you have a form bound to Transactions table, use a combobox to select customer for transaction record.

    If you need more help, provide more info on data structure and form arrangement.

    You could provide db for analysis. Follow instructions at bottom of my post.
    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
    Rod is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    If you haven't already done so, include in your transaction table the field CustomerID as a long number. You should now define the relationship between the CustomerID in the customer table and the CustomerID in the transaction table. If you don't know how to do this then repost and ask.

    For any transaction you may now enter the customer id. As this is not necessarily the most helpful value it would be much better to select the customer name from a drop down list. This is achieved by using a combo (or list) box. I need to see your db to give you specific help.

    P.S. June, we're tripping over each other again!

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

Similar Threads

  1. Replies: 2
    Last Post: 09-13-2012, 03:42 PM
  2. Autofill field based on combo box
    By topp in forum Access
    Replies: 2
    Last Post: 06-26-2012, 04:36 PM
  3. PLEASE help: Autofill based on one field
    By Suzanne in forum Forms
    Replies: 5
    Last Post: 07-07-2011, 11:09 AM
  4. Autofill of a field based on another
    By MyWebdots in forum Forms
    Replies: 7
    Last Post: 07-12-2010, 05:00 AM
  5. Autofill field based on autonumber field
    By frevilla in forum Forms
    Replies: 1
    Last Post: 09-11-2009, 02:50 AM

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