A
avarho
I am having a problem getting the button wizard to open the correct forms. I
have my main form (form 1) that is defined by a Unique Primary (ex. CaseID)
key and it is related in a one-to-many relationship to another form (form 2)
that has a primary key (StructureID) and a foreign key (CaseID). I want to be
able to add a button to form 1 (which displays data on only one record) that
will open form 2 to display only the records that corrospond to the CaseID in
Form 1.
Steps I've followed:
1. In design view on Form 1 I selected the button tool from the ribbon and
created a button on the form.
2. The botton wizard opens and asks what type of operations are to be
performed. I select FORM OPERATIONS and from the next menu I select OPEN FORM.
3. The next menu that appears is two radio button asking the user to select
the option to display all records or to display specific data. I select
DISPLAY SPECIFIC DATA.
4. The next box that appears asks the user to identify the field that
relate. I select CASEID from form 1 and CASEID from Form 2.
5. The next option are just naming the controls. After that it finishes the
wizard and the botton is created.
But my issues is after all of that my forms will not filter for the specific
data. When I select the button it will open a form that display all records
in the table.
How do I fix this?
have my main form (form 1) that is defined by a Unique Primary (ex. CaseID)
key and it is related in a one-to-many relationship to another form (form 2)
that has a primary key (StructureID) and a foreign key (CaseID). I want to be
able to add a button to form 1 (which displays data on only one record) that
will open form 2 to display only the records that corrospond to the CaseID in
Form 1.
Steps I've followed:
1. In design view on Form 1 I selected the button tool from the ribbon and
created a button on the form.
2. The botton wizard opens and asks what type of operations are to be
performed. I select FORM OPERATIONS and from the next menu I select OPEN FORM.
3. The next menu that appears is two radio button asking the user to select
the option to display all records or to display specific data. I select
DISPLAY SPECIFIC DATA.
4. The next box that appears asks the user to identify the field that
relate. I select CASEID from form 1 and CASEID from Form 2.
5. The next option are just naming the controls. After that it finishes the
wizard and the botton is created.
But my issues is after all of that my forms will not filter for the specific
data. When I select the button it will open a form that display all records
in the table.
How do I fix this?