Results 1 to 4 of 4
  1. #1
    BSkeens is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    2

    Question MS Access Form Questions

    Hi,

    I have a few questions regarding the use of forms in Access DBs. I'm currently trying to build a DB for work and had some questions on whether or not some desired functions can be used within forms.

    • My database currently has five Tables (one table for each employee on my team) that manage my employee's work (volume, status on different tasks, etc...)
    • I need to create a form for them to use to input new line-items into their personal tables.


    So here are my questions:
    • How can I set up a combo-box on a form to select employee names and route the new line item on the form to that employee's table? Is this sort of thing even possible? For example, if John Doe is selected on the form, how can I ensure the rest of the forms data inputs are routed to John Doe's Table?
    • I have a table referencing our clients' account information (Client Name, Address, etc...). Is there a way I can set up a search or "Lookup" field on the form so that when you enter a client's ID# it will automatically populate the rest of that client's info on the form?
    • Would there be a way for me to put a field (such as quantity) on the form and have it create multiple line-items (matching the number given)? For example, if some wanted to create three identical line items, is there a way to have a drop-down box or combobox and have them select 3 and when they hit the "Add New Record" button it will populate three times?


    Any help or other suggestions on approaching the above problem would be greatly appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    For starters, you should not have a table for each employee, you should have a single table with a field to denote the employee.

    This will help with the second:

    http://www.baldyweb.com/Autofill.htm

    For the third, yes. You can use a For/Next loop and the AddNew method of a recordset.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    BSkeens is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    2
    Thanks for the tips. The thought behind having a table for each employee was so they could go into their own tables and update status at any point in time. Should I build the form in a way that they can call on the specific line item for the task they which to update and use the form to update that line item from the master employee list on the DB?

    And for the other two I think that will definitely work. Thank you for the tips.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The principle is normalization:

    Fundamentals of Relational Database Design -- r937.com

    You don't want to have to add a table, etc every time you add an employee (normal course-of-business changes shouldn't require design changes to the app). You can filter the form to a specific employee in any number of ways.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 6
    Last Post: 06-09-2017, 11:44 AM
  2. New to Access Questions
    By mneko in forum Access
    Replies: 2
    Last Post: 03-25-2011, 11:16 AM
  3. Some Access Questions
    By amegahed3 in forum Access
    Replies: 1
    Last Post: 04-11-2010, 12:24 AM
  4. HELP, Access questions.
    By brown in forum Access
    Replies: 0
    Last Post: 04-21-2009, 03:31 PM
  5. New to Access and have questions
    By MichelleFinn in forum Access
    Replies: 1
    Last Post: 04-04-2008, 06:30 PM

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