Results 1 to 2 of 2
  1. #1
    label027 is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2011
    Posts
    8

    Add a User to a table

    I have a data entry form created to add a new rep to the RepList table. I have a combo box where you can select the Firm ID and a text box that pulls up the name of the Firm when the combo box selects a certain Firm ID. The Combo box and text box are both pulling information from the RepList table. I also have a few other texts boxes that are, along with the Firm ID, bound to the RepList table.

    I can't seem to figure out how to bind the text box with the firm name to the RepList table. Under Control Source I have =[FirmID].[column](1) that pulls the name of the firm from the selected Firm ID.

    How can I get the text box to bind to the RepList table so the new user has all fields of the table filled in correctly?

    Thank you for the help and sorry, (obviously) I am quite new to this Access thing.

  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
    Give the combobox a name different from the field it is bound to, like cbxFirmID. I do this with all bound controls. Then in the textbox ControlSource: =cbxFirmID.Column(1). Controls with an expression as ControlSource cannot be bound to field.

    A principle of relational database is 'don't duplicate data'. You have a table of firms and a table of reps? Should not duplicate the firm name in the reps table, just save the FirmID.

    Use queries to join tables and retrieve related data.
    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.

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

Similar Threads

  1. Replies: 12
    Last Post: 10-20-2011, 08:22 AM
  2. New user - separate a table into two tables
    By Henry_Reimer in forum Database Design
    Replies: 19
    Last Post: 10-08-2011, 10:19 PM
  3. User interface to update a table
    By HectorH in forum Forms
    Replies: 1
    Last Post: 09-16-2011, 06:16 PM
  4. Preventing user from accessing the Table
    By winsonlee in forum Access
    Replies: 4
    Last Post: 07-26-2011, 07:55 AM
  5. create user interface from table
    By mer in forum Forms
    Replies: 5
    Last Post: 07-24-2011, 08:07 PM

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