I
Ian Chappel
I have a Mainform containing just a MonthView control. When I click a single
date, I would like a subform to display only records matching this date.
What is the simplest/best way to do this? I can do it fine using code to
assemble the SQL string as the subform's recordsource, but it _should_ work
(shouldn't it?) by setting the date field's criteria in the subform's
recordsource to Forms!Mainform!ctrlDate. I have tried this by basing the
form on a query, and entering the query directly as the form's Data source -
not sure if this makes a difference???
In fact it works fine _but_ only after clicking the MonthView control a
couple of times, but it doesn't display the data on loading or even
selecting another date - it does the next time (and thereafter) though!
I think I'm in a muddle with my combination of correct Events on the correct
Forms and the correct Recalc/Refresh/Requery method. With enough trial and
error I could probably fix it, but I'd rather someone could explain exactly
what is needed (and why) in this sort of situation!
Thanks.
date, I would like a subform to display only records matching this date.
What is the simplest/best way to do this? I can do it fine using code to
assemble the SQL string as the subform's recordsource, but it _should_ work
(shouldn't it?) by setting the date field's criteria in the subform's
recordsource to Forms!Mainform!ctrlDate. I have tried this by basing the
form on a query, and entering the query directly as the form's Data source -
not sure if this makes a difference???
In fact it works fine _but_ only after clicking the MonthView control a
couple of times, but it doesn't display the data on loading or even
selecting another date - it does the next time (and thereafter) though!
I think I'm in a muddle with my combination of correct Events on the correct
Forms and the correct Recalc/Refresh/Requery method. With enough trial and
error I could probably fix it, but I'd rather someone could explain exactly
what is needed (and why) in this sort of situation!
Thanks.