Search for data on a subform?

R

rasper22

Hi!

I need to be able to search a subform while the the control is on the
main form. I have tried to place a combo box on the main form, but it
will only let me search the main form’s attributes.

Can some please help?


Franz
 
J

John Vinson

Hi!

I need to be able to search a subform while the the control is on the
main form. I have tried to place a combo box on the main form, but it
will only let me search the main form’s attributes.

Can some please help?


Franz

You're assuming - incorrectly - that a Subform contains data.

A Subform is a restricted window, showing that subset of the data in
the subform's recordsource Table which match the Master/Child Link
Fields. It doesn't contain any data itself and is therefore not
searchable; the data exists in the table, and only in the table.

If you want to search on a field in the subform's Table, how do you
want the mainform to synchronize with it? Suppose there are multiple
records in the Subform's table which match? What if they all refer to
different mainform records? Which mainform record would you want to
see?

This can be done... but it's usually confusing and difficult!

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top