aikea
Registered User.
- Local time
- Today, 15:06
- Joined
- Aug 4, 2007
- Messages
- 58
I haven't got time to look at your database blk133, but I am strongly against using subform in any scenario. I have got too much pain from it when few years ago I started my access study.
The best solution is. Create a query which you want you subform to present. Add a lisbox to the form, change its rowsource property to the query you create, change bound column to the column you want to use as the value of selected data (primary key normally).
Now you have a subform that decouple from the data source. You can use listbox1.value to retrieve the value of selected item.
You can create a query with parameter, when you need to change the criteria, just give a new value to that query then requery the listbox.
The best solution is. Create a query which you want you subform to present. Add a lisbox to the form, change its rowsource property to the query you create, change bound column to the column you want to use as the value of selected data (primary key normally).
Now you have a subform that decouple from the data source. You can use listbox1.value to retrieve the value of selected item.
You can create a query with parameter, when you need to change the criteria, just give a new value to that query then requery the listbox.