B
Bernd Smits
Hi,
So:
1) I create a combobox bound to a column in a table;
2) I create a form that contains all the fields that are present in the same
table;
3) But finally do I have to add the commandline you've wrote? And last part
of the commandline is Me.cboPerson or do I have to replace it with something
else?
Thanks
Bernd
Hi,
First, usually you have the PersonId field (or whatever you called it) as
the bound column
of your combo.
Now, you design a form that pulls ALL the records.
You then use the OpenForm method utilizing the WhereCondition argument to
only display the info on the selected person:
DoCmd.OpenForm "yourForm",,,"PersonId = & Me.cboPerson
Substitute your form, control and field names.
So:
1) I create a combobox bound to a column in a table;
2) I create a form that contains all the fields that are present in the same
table;
3) But finally do I have to add the commandline you've wrote? And last part
of the commandline is Me.cboPerson or do I have to replace it with something
else?
Thanks
Bernd
Hi,
First, usually you have the PersonId field (or whatever you called it) as
the bound column
of your combo.
Now, you design a form that pulls ALL the records.
You then use the OpenForm method utilizing the WhereCondition argument to
only display the info on the selected person:
DoCmd.OpenForm "yourForm",,,"PersonId = & Me.cboPerson
Substitute your form, control and field names.