Quer returns no records

D

Dick

Good Day....

My situation is one where I have a form open consisting of only 1
table. I included a "button" on it to open a subsequent form and
subform that contains related child records (one to many relationship).
My VBA code works great as long as there are child records. If there
are no child records then the subform does not get displayed - just a
gray box. I would like to do a check to see if the query returns no
records and then open a blank subform to create a new record.

I can't seem to find the right code to make this work.

Thanks.....
 
D

Douglas J. Steele

What's the RecordSource for the form being used as the subform?

If it's a query that joins the two tables, make sure you use Left Join,
rather than Inner Join, in the query.
 

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