secondangel
Registered User.
- Local time
- Today, 14:05
- Joined
- Nov 6, 2008
- Messages
- 52
Hi ive tried the serach and some filter code i found in the forums but they dont do what i requrie so figured id ask for direct help.
I have a table full of information and i have it set as a form.
Ive popped it as a subform in a mainform.
on the mainform is a combobox that i want to use to filter ALL records in the subform.
A few questions.
Should the subform be of type datasheet ?
Does the code go in the OnUpdate part of the combobox or is it better to have a button so that it can be done several times if need be without closing and reopening the form.
I have some filter code that finds the first record but then you can still see all the other records after it
I just want to pick and display all records where combobox = the fieldname.
Do i do a recordset findfirst and then flag it as visible and then do a rst.movenext and loop through the whole table flagging the record as visible as yes if it matches ?
Any help much appreciated as always.
For help.
Table is tblSupplierCatalogue
Field is SupplierName
Combo is supCombo
Mainform is formSupCatChoice
Subform bit is formSupCatalogue (this is just as a normal tabular display form - should it be datasheet ?)
Thank you
Ashley
I have a table full of information and i have it set as a form.
Ive popped it as a subform in a mainform.
on the mainform is a combobox that i want to use to filter ALL records in the subform.
A few questions.
Should the subform be of type datasheet ?
Does the code go in the OnUpdate part of the combobox or is it better to have a button so that it can be done several times if need be without closing and reopening the form.
I have some filter code that finds the first record but then you can still see all the other records after it
I just want to pick and display all records where combobox = the fieldname.
Do i do a recordset findfirst and then flag it as visible and then do a rst.movenext and loop through the whole table flagging the record as visible as yes if it matches ?
Any help much appreciated as always.
For help.
Table is tblSupplierCatalogue
Field is SupplierName
Combo is supCombo
Mainform is formSupCatChoice
Subform bit is formSupCatalogue (this is just as a normal tabular display form - should it be datasheet ?)
Thank you
Ashley