+ Reply to Thread
Results 1 to 5 of 5

Building a Form that references a table

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    18

    Building a Form that references a table

    Just inherited an Access Database that tracks member activity...

    Two main tables
    1. Transactions
    2. Dealer List (dealer code, name, contact info, etc)

    Currently users enter directly in the transaction table... causing major accuracy issues. I have created a Form for them to enter transaction information (mbr name, dates, amount, etc.)

    The problem... I want to have a field for Dealer Name but need the list to match what is currently in the Dealer List table.

    How do reference a table in a Form? List, combo list?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,940

    Re: Building a Form that references a table

    Is there any common field that you can use to link the two tables? In order to get the information onto the form, you will need to add a subform to the mainform. The subform will be bound to the dealer table, but you will have to have the two tables linked to each other with a common field so that it all is in sync.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Building a Form that references a table

    If you ant to crreate a combobox that shows the list of the dealers then

    1. Create a combo box

    2. Display property sheet

    3. In row source table select Table / query

    4. In row source click the drop down arrow and select the required
    table (may be dealer in this case)

    5. Use control source property to set the destination if data (where to
    save).

    An automatic wizard may run when you create the combo box. follow this

    Regards

  4. #4
    Registered User
    Join Date
    02-09-2009
    Location
    Upstate New York
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Building a Form that references a table

    The combobox worded perfectly... Thanks!

    In looking at my new form I see some areas where I can improve the process.

    ?. How do I look up a value in another table? I've tried DLookup but cannot get it to work.

    Two main tables
    1. Transactions
    2. Dealer List (dealer code, name, contact info, etc)

    I have a combo box to select Dealer Name in my transaction form. I would like to pick a Dealer from the list and have the Code Field populate automatically.

    Ex: select Dealer - James Johnson.... Lookup in Dealer List and populate code JJ

  5. #5
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Building a Form that references a table

    - In your Transection form create a subform.

    - If the wizard starts close it

    - In property sheet of this subform

    * Source object to Dealer table
    * Click "..." in link child field and select "dealer name" in both sides
    (Master and Child
    - Lock property to "Yes" So that itmay not br changed accidently

    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1