Results 1 to 9 of 9
  1. #1
    Silvera is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2013
    Location
    California
    Posts
    65

    Question From a form open a 2nd form that is logged to the same record as the previous form


    In the first form I list the basic data for a record. From that I use a label as a button to open close the 1st and open a 2nd form for additional addition data [supplemental to the basic data]. My problem is the 2nd form always open at the 1st record. I would like the 2nd form to open at the record that was open the 1st form. The 1st form closes and the additional 2nd from opens. When done entering the data in the 2nd form there is the option to return to either the 1st form or go to the Main Menu

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    What is the issue? Do you have code? What happens - error message, wrong results, nothing?
    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.

  3. #3
    Silvera is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2013
    Location
    California
    Posts
    65
    The issue is when I click on my "button" the first "basic information" form closes and the second form opens that gathers a different and not always needed information for the same record. I am trying to figure out how to make the second form open at the same record number say 49 instead of 1 [the first record].

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,951
    Which field has the unique record ID?

    Try something like:

    DoCmd.OpenForm "2nd form name", , , "ID = " & Me.ID
    DoCmd.Close acForm, "1st form name", acSaveNo
    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.

  5. #5
    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 I said at your twin post of this problem at

    http://www.dbforums.com/microsoft-ac...-1st-form.html

    Since you're doing data entry on a single Record from a single Table, the standard approach would be to use a Tabbed Control, with Controls currently on your first Form on the first Page, and sometimes needed/sometimes not Controls from your second Form on the second Page. No need to open a second Form and the Controls on each Page of the Tabbed Control will always be on the same Record.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  6. #6
    Silvera is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2013
    Location
    California
    Posts
    65
    Yes, I am trying on two forums. As I noted on the other, It is seldom I need the second form which is why is broke it off of the initial form. I was hoping that I could use a variable I could pass forward to the next form to have it connect to the previous record. Yes it is a matter of real estate.
    My initial form was really crowded and the not every monitor in out firm would be able to deal with the larger form. I try to make my forms easy for the causal user. I am a self trained database developer trying to provide a practical resource in a single point instead of several spread sheets. My actual field is architecture and more specifically construction administration. The volumes paperwork is overwhelming form many my goal is to give them a single point of access for a lot of information.

  7. #7
    Silvera is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2013
    Location
    California
    Posts
    65
    This sounds like a good approach, I appreciate your assistance. I give it a try later, just got notified I need to start diner. Thanks your help.

  8. #8
    Silvera is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2013
    Location
    California
    Posts
    65
    Oh, I should have noted that is great that you help on two or more? forums!!!

  9. #9
    Silvera is offline Advanced Beginner
    Windows 8 Access 2010 32bit
    Join Date
    May 2013
    Location
    California
    Posts
    65
    "Which field has the unique record ID?" - The primary key, a text field since the id is often a mix of numbers and text like "101R1"

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

Similar Threads

  1. Replies: 9
    Last Post: 04-02-2013, 07:22 AM
  2. Replies: 1
    Last Post: 05-03-2012, 02:25 PM
  3. Open form based on value from previous form
    By MiddletoM in forum Access
    Replies: 1
    Last Post: 04-24-2011, 07:01 AM
  4. Open Form and Close Previous Form
    By gerrymouse1 in forum Forms
    Replies: 3
    Last Post: 04-19-2011, 05:42 AM
  5. Open Form with information from previous form
    By jheintz57 in forum Forms
    Replies: 9
    Last Post: 03-23-2010, 07:30 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