Guest_imported
New member
- Jan 1, 1970
- 0
I have a table that has a multiple-field index that uniquely identifies each record.
I have a form that has a combo box which is supposed to allow the user to select an item. Currently, the combo box has two columns which have enough information to uniquely select a record from the table.
I would like to be able to have it so that when an item is selected, the rest of the fields in the form will update according to the selected record.
I don't think it's possible for a macro to have two criteria in a FindRecord action since it can only access the bound column in a combo box, so I have been trying to do it with a module, since in a module I can use combobox.column(0) and combobox.column(1) to get the two values necessary to find the record.
So, is there a way to do a DoCmd.FindRecord with two criteria? If not, do you have any suggestions? I think that autonumbering would also do the job, but I would prefer not to use autonumbering.
Thanks for any help.
Vincent Cheung
Vincent.Cheung@mts.mb.ca
I have a form that has a combo box which is supposed to allow the user to select an item. Currently, the combo box has two columns which have enough information to uniquely select a record from the table.
I would like to be able to have it so that when an item is selected, the rest of the fields in the form will update according to the selected record.
I don't think it's possible for a macro to have two criteria in a FindRecord action since it can only access the bound column in a combo box, so I have been trying to do it with a module, since in a module I can use combobox.column(0) and combobox.column(1) to get the two values necessary to find the record.
So, is there a way to do a DoCmd.FindRecord with two criteria? If not, do you have any suggestions? I think that autonumbering would also do the job, but I would prefer not to use autonumbering.
Thanks for any help.
Vincent Cheung
Vincent.Cheung@mts.mb.ca