Setting Form RecordSource property returns blank form when no data matches SQL query

T

tina

have you tried not changing the recordsource for either
form, but instead filtering the main form's data by month
using the Me.Filter, and Me.FilterOn properties?
if the main/subform objects are linked properly as
parent/child, then the subform will automatically filter
to present only the records related to the filtered
records in the main form.
if the filter results in no records, then no records will
show in either the main or sub form.
 

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