MajP
You've got your good things, and you've got mine.
- Local time
- Today, 15:08
- Joined
- May 21, 2018
- Messages
- 9,504
I would not use an expression or a function to do this. Should be done in a query
I would only bother with a function if the resulting query would make the form query not updateable.
If you are storing a value on the form from the combo and that value is related to other fields in another table, then simply join the data table to the rowsource of the combobox. And as already been said, do not store these values.I had been using the combobox to display 3 fields, only one of which is stored in the table after choosing it via the down arrow on the CBO. The other two fields I had wanted to store in their respective fields on the form via the code Me.txtLastName.Value = Me.cboPatient_Number.Column(1) and Me.txtFirstName.Value = Me.cboPatient_Number.Column(2). Is there a know way to do this or is there another way which might actually work.
I would only bother with a function if the resulting query would make the form query not updateable.