Results 1 to 3 of 3
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Contrlling two form oopen at the same time

    All the documentation that I have on MS Access 2010 concerns using set focus on a form to move the cursor around from one control to another.



    That is fine as far as it goes, but my case is slightly different. I have two forms. You open up the first form and type in say the first name, and last name of a person.

    Then upon completing that the form closes, and another form opens; and the second form has what was typed in the first form, plus some additional control such as person's location, phone ext for user input..

    Then upon completing the entries in second form, control switches back to the first form to start the whole process again; and the user can then put in someone else on the first form and then the second and so on.

    I do not like this opening one form and the next to complete all of the entries. It seems much easier to open the first form and after entry completion the first from stays open and the second form now opens.

    The cursor now moves to the top of the second form and entries are made on the second and upon that form's entry completion; control (focus) switches back to the top of the first form; but the second form remains open. The only change is the cursor is now at the top of the first form.

    Now both forms remain open and the cursor just moves down one form and then to the top of the next form for data entry.

    The only time the forms close is when all entries are complete and they both close.

    It seems that if one is putting in a lot personnel and all their relevant entries, this is the better way.

    However, my instructions on MS Access 2010 say nothing about switching the cursor (focus) from the bottom of one form to the top of the next form to enter data and then switch back to the first form, etc. This would leave both forms open and the focus just switches from one to the other.

    My question is how to do this? I can switch the focus (cursor) around in one form, but to move the cursor to another that is a different story.

    How do I do that?

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you DONT need 2 forms open.
    use 1 form with all records, put a list box to pick and item then the same form will show the detail by filtering on what was picked
    Code:
    me.filter = "[id]=" & lstBox
    me.filterOn = true
    or use 2 forms:
    use one form, say the list if items to pick from, and this launches the 2nd form for detail, but never close the 1st form. Theres no point.

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I would choose to use two forms instead of combining the two forms into one form. The VBA program was not initially written by me. I believe that there is a reason
    for the two forms beyond the current issue that we are discussing. I think other program might be using them also. To combine the two would be a mistake.

    So how do I switch cursor (or focus) from the bottom of one form to the top of the other and then do it again upon reaching the bottom of the second form?

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

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

Similar Threads

  1. Replies: 1
    Last Post: 05-21-2016, 08:51 AM
  2. Replies: 6
    Last Post: 12-15-2015, 04:11 PM
  3. Replies: 10
    Last Post: 10-22-2013, 07:35 AM
  4. Replies: 42
    Last Post: 03-01-2013, 06:58 AM
  5. Time: How to increment time in form
    By dek in forum Forms
    Replies: 1
    Last Post: 05-07-2011, 12:47 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