Change form record to match another form

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default Change form record to match another form

    I had a form with a lot of controls/subforms and this was causing my
    database to move slow. I decided to split the controls on two forms.
    Each form has two ways to navigate through the records:
    1) The record selectors at the bottom of the form
    2) A combo box with all of the records listed

    What I would like to do now is to add a button to form1 that will open
    form2 to the record with the same number as form1 and vice versa. The
    main field controlling each form is called StudyNum.

    I can't figure it out. I could get the subforms on form2 to match the
    record position on form1 but I can't seem to get form2 to update
    anything that isn't in a subform. Since the forms are identical in
    coding, the same problem exists when I go from form2 to form1, the
    subforms update but any controls on the 'main' part of the form won't.

    Currently, a user will select a record on form1, make changes, hit a
    button to open form2 then have to navigate to the same record number
    otherwise form2 will open to the first record in the table.

    Can anyone shed any light on how to get this to work?

    Thanks,
    Dave

    Dave - Freedonia Guest

  2. Similar Questions and Discussions

    1. Change form destination in a Flash Form
      I am trying to use ActionScript to change the action page of a cffrorm. I realize that you can not use document in ActionScript like you can with...
    2. how do I change pdf form in Version 7.0 change permission to allowed
      hello, I'm working on a web application. I need to insert some javascript to a form which is submitted by someone else. I had no problem in...
    3. Can't add new record to a form
      I am using Access 2000. I created twp databases that are linked by one field. The first db is called "MDO" - the 2nd is "ECR", they are linked...
    4. Can't add record in the form
      I have a form that allows user to view records for a specific client. If I would like to add a record, I get a message: "Can't add record(s); join...
    5. look up record using ste values from one form on another form
      it did not work here is the code i am using with the code you sent the command below operates off of a command button to find the record i want i...
  3. #2

    Default Re: Change form record to match another form

    OK. After more research, I found the answer.

    I changed the coding on form1 to change the value of the combo box on
    form2 and then call the AfterUpdate event of the combo box on form2. Of
    course, I had to change the AfterUpdate event from Private to Public.

    Dave

    Dave - Freedonia wrote:
    > I had a form with a lot of controls/subforms and this was causing my
    > database to move slow. I decided to split the controls on two forms.
    > Each form has two ways to navigate through the records:
    > 1) The record selectors at the bottom of the form
    > 2) A combo box with all of the records listed
    >
    > What I would like to do now is to add a button to form1 that will open
    > form2 to the record with the same number as form1 and vice versa. The
    > main field controlling each form is called StudyNum.
    >
    > I can't figure it out. I could get the subforms on form2 to match the
    > record position on form1 but I can't seem to get form2 to update
    > anything that isn't in a subform. Since the forms are identical in
    > coding, the same problem exists when I go from form2 to form1, the
    > subforms update but any controls on the 'main' part of the form won't.
    >
    > Currently, a user will select a record on form1, make changes, hit a
    > button to open form2 then have to navigate to the same record number
    > otherwise form2 will open to the first record in the table.
    >
    > Can anyone shed any light on how to get this to work?
    >
    > Thanks,
    > Dave
    Dave - Freedonia Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139