Results 1 to 7 of 7
  1. #1
    AmaroNeto is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2015
    Posts
    2

    Multiple forms to add a record to the table

    Hello!
    I want to add a record to the table through multiple forms, so I built 3 forms, each one with different fields of the table, then I built another form and put the others inside it in a 3 page tab. At that fourth form I put an Add button but when I click it, 3 records are added to the table, each record only with the fields of those respective forms.


    How do I add a single record with the fields of the forms filled.
    Thank you for the attention, and sorry for my bad english, I hope you understand.
    Amaro Neto

  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
    Why multiple forms? Because of the number of fields (if so, raises a normalization question)? From the sound of it, I'd have a single form with a tab control to organize the fields logically. I would only have separate forms if there were related tables involved.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I agree with Paul. Just use a tab control to arrange/group the controls.

    What does the Save button do? Any code behind it? The data will be saved if you close the form, move to a different record, do a requery.

  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,652
    Quote Originally Posted by ssanfu View Post
    Uh... Paul, shouldn't that be "Tab" control?
    Yes, stupid autocorrect or stupid Paul, not sure which.

    Editing to fix.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Has to be the confuser's fault

    Happens to me a lot. It does what I tell it to do, not what I want it to do!!

  6. #6
    AmaroNeto is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2015
    Posts
    2
    Hum, Thank you for the replies guys.
    I'm just a beginner, I'll try the Tab control.
    Thanks again.
    Amaro Neto

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem, and welcome to the site by the way!
    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: 12
    Last Post: 08-06-2014, 03:10 PM
  2. Replies: 8
    Last Post: 04-01-2014, 02:03 AM
  3. Replies: 1
    Last Post: 05-10-2013, 06:26 AM
  4. Replies: 6
    Last Post: 07-02-2012, 02:53 PM
  5. multiple tables, multiple forms, one record
    By FullyBaked in forum Forms
    Replies: 7
    Last Post: 10-24-2011, 04:27 AM

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