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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding record in subform

Status
Not open for further replies.

TrekBiker

Technical User
Nov 26, 2010
334
GB

I have a frmClients that shows clients' jobs in a subform, linked by ContactID.

Some contacts have large numbers of jobs. My client uses CTRL+F in the subform's JobID field to search for a particular job but says this can be very slow.

Is there an alternative, eg putting a finder combo in the subform? I've tried this with SQL source that I thought would limit JobIDs to the current contact but it doesn't update when moving to another contact.

Code:
SELECT qryJobs.JobID, qryJobs.ContactID
FROM qryJobs
WHERE (((qryJobs.ContactID)=[forms]![frmClients].[ContactID]))

Any suggestions much appreciated.
 
Have moved on a stage with this, creating a copy of the jobs subform as a separate form and opening it from the original using a filter for the current ContactID.

Adding a search combo does the job but it's a bit inelegant. Any thoughts on doing the same direct from the original subform?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top