V
Veus
Hi,
I am developing a system which lets users search on multiple fields.
I have a form for the search part and a form which will display the
results. Ive used this code: http://allenbrowne.com/ser-62code.html as
a starting point however this displays the results in the current form.
Ive tried changing
Me.Filter = strWhere
Me.FilterOn = True
to
stDocName = "firms"
DoCmd.OpenForm stDocName, , , strWhere
stDocName.Filter = strWhere
stDocName.FilterOn = True
however I get an invalid qualifier result. I also have one calculated
field on the results form which works out how many employees work for
the specific company (using the code:
=DCount("ID","individuals","compID = " & [ID]) )
With this included i got an object required error.
If you could help I would be grateful.
Thanks
I am developing a system which lets users search on multiple fields.
I have a form for the search part and a form which will display the
results. Ive used this code: http://allenbrowne.com/ser-62code.html as
a starting point however this displays the results in the current form.
Ive tried changing
Me.Filter = strWhere
Me.FilterOn = True
to
stDocName = "firms"
DoCmd.OpenForm stDocName, , , strWhere
stDocName.Filter = strWhere
stDocName.FilterOn = True
however I get an invalid qualifier result. I also have one calculated
field on the results form which works out how many employees work for
the specific company (using the code:
=DCount("ID","individuals","compID = " & [ID]) )
With this included i got an object required error.
If you could help I would be grateful.
Thanks