+ Reply to Thread
Results 1 to 5 of 5

Thread: 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
    17

    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
    Valued Forum Contributor alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Lake County, Illinois
    MS-Off Ver
    MS Office 2010, 2007 and 2002
    Posts
    1,161

    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

  3. #3
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2003, Excel 2007 (Portable)
    Posts
    388

    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
    17

    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 2003, Excel 2007 (Portable)
    Posts
    388

    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
    Mahju

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

    Rule 9
    Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

+ 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.2.0