Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

requerying subform gives 'object invalid' error

Status
Not open for further replies.

Grieg

Technical User
Sep 13, 2002
20
GB
Good afternoon,

I'm hoping someone can see where I'm going wrong!

I have a form where you can enter criteria into text boxes to search for clients records. The details of the clients records then appear in a subform (subClientSearch) on the form. The subform data is provided from a simple SQL union query which searches against the data in the text boxes. The query is run by clicking on a button which runs the line of code subClientSearch.requery.

The problem is that this works fine the first time you use it when opening the form. However if you use it a second time you get an error message 'object invalid or no longer set'.

Does anyone know where I'm going wrong or how I can avoid this?

Any help greatly appreciated.

Grieg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top