Results 1 to 4 of 4
  1. #1
    leelu1317 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2015
    Posts
    1

    One Form for many Tables

    I did not go to school for programming but I do have some knowledge. What I'm trying to do is create one form for my end users to use to update information in several tables.



    Here is my scenario I have three tables. Each table is for a specific reagent and has all the same column headings (received date, expiration date, etc.). I want my form to use a combo box to select the table for whatever reagent I'm entering data for and filter or send the data to that table. Not sure if I can do this.

    I would love to not have to make a form for every reagent that I have to enter into this database.


    Leelu1317

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    You can use code to assign a value to the Form's Recordsource property.
    Me.recordsource = me.comboName.Value

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,642
    Instead of 3 reagent tables, should be 1 with another field for reagent type. Select reagent from combobox to save value to that field. Apply filter to select the desired set of records.
    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.

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    As June7 has indicated, three identical Tables, one for each reagent, violates normalization rules, and in the end will cause you to have to duplicate more than just Forms!

    And what happens if a 4th reagent is added? And a 5th? You'd have to add another Table!

    Follow June7's suggestion and add a Field for the reagent name.

    Linq ;0)>

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

Similar Threads

  1. Can't Update Tables from Form - Form Locked?
    By faythe1215 in forum Forms
    Replies: 1
    Last Post: 02-12-2015, 12:22 AM
  2. Replies: 2
    Last Post: 07-15-2014, 10:39 AM
  3. One form to many Tables
    By techflexus in forum Forms
    Replies: 2
    Last Post: 07-27-2012, 08:04 PM
  4. Replies: 14
    Last Post: 01-26-2012, 02:20 AM
  5. Replies: 9
    Last Post: 03-24-2009, 09:19 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