Hi all,
I am building a customer profile using an unbound form and I just wanted to ask for advice on best practices for doing this. Specifically on the matters listed below:
Any other tips are certainly welcome.
Thanks,
George
I am building a customer profile using an unbound form and I just wanted to ask for advice on best practices for doing this. Specifically on the matters listed below:
- Retrieving the data from the tables
To do this I created a one line multiple fields recordset based on selected customer ID. An then assigned the values of the recordset to the relevant controls in the form. Is this the proper way to do this?
- Handling fields with unknown amount of records
For example I may want to list children or addresses. In these cases customers may have more than one records. I thought of presenting these in listboxes. To retrieve the data I will construct an SQL query and set the listbox rowsource to that query (through VBA).
My question is whether this is inefficient. Does control.rowsource = SQLstr effectively open and close a recordset each time it is being used? Is there a better solution to get the data by opening only one recordset?
Any other tips are certainly welcome.
Thanks,
George