Results 1 to 2 of 2
  1. #1
    McArthurGDM is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    215

    Creating form to populate a table in a specific way, question

    Say I have a table of ID's that looks as such.



    ID Desc Desc2
    A1 ... ...
    A2 ... ...
    A3 ... ...

    And this ID table is connected to a Score table. As such. Where ID has a parent/child relationship via a form, of course.

    ID State Score
    A1 OH 1
    A1 MA 2
    A1 KY 1
    A1 NY 2
    A1 VT 4
    A1 ME 7
    A1 FL 1
    A2 OH 2
    A2 MA 3
    A2 KY 1
    A2 NY 3
    A2 VT 3
    A2 ME 2
    A2 FL 1


    However, let's say that I want to be able to add values to the score table. In this case, the States are considered constant (that is, there will always be a set amount - say, 50). I want the format of the form to look like this:

    Click image for larger version. 

Name:	Form.jpg 
Views:	13 
Size:	11.0 KB 
ID:	20974

    That is, they type in the ID once, the State field is already predetermined and all they really need to input is the value. And, somehow, the value table generates in the manner I displayed above.

    Thanks,

  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,652
    One option would be to prepopulate your table with 7 entries, using your states (presumably held in a table) and the ID. Another would be an unbound form where clicking on a button would run code to create the records.
    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: 5
    Last Post: 01-24-2015, 11:49 AM
  2. Replies: 5
    Last Post: 03-23-2014, 09:01 AM
  3. Replies: 6
    Last Post: 06-14-2013, 05:43 PM
  4. Replies: 3
    Last Post: 12-04-2012, 01:44 PM
  5. Replies: 1
    Last Post: 09-02-2010, 03:59 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