Hi
I feel a little silly asking a question that is very simple. however, I can't find much documentation on the net etc. I know how to create a combo box filter with code but I don't know how to create a filter on form load to limit it to one record when the form opens.
That's all i'm trying to do. On the assumption that this will speed things up, if I could have code so that, when the form opens it will already be filtered to one record, say, by the first MainID etc.
I've thought about putting a combobox on the first form that opens the "data" form and using a reference on the dataform record source to the first forms combo. I don't really want to effect any of the search criteria on the dataform.
Does any one know (or can point me to) any code that might do this without effecting the data forms search criteria?
thankyou
I feel a little silly asking a question that is very simple. however, I can't find much documentation on the net etc. I know how to create a combo box filter with code but I don't know how to create a filter on form load to limit it to one record when the form opens.
That's all i'm trying to do. On the assumption that this will speed things up, if I could have code so that, when the form opens it will already be filtered to one record, say, by the first MainID etc.
I've thought about putting a combobox on the first form that opens the "data" form and using a reference on the dataform record source to the first forms combo. I don't really want to effect any of the search criteria on the dataform.
Does any one know (or can point me to) any code that might do this without effecting the data forms search criteria?
thankyou