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

Filtering Subform

Status
Not open for further replies.

bitech

Programmer
May 19, 2001
63
US
This is so frustrating because I know it's easy. I have the calendar Active Control on a form. When the user selects a date I want the subform to jump to that date and reveal the events for that date.

To test whether or not Access could distinguish the date from the calendar, I made a message box so it would tell me the date. IT WORKS! Now I've tried applying filter, even changing the subform's recordsource but nothing works. please help
 
Using the recordsource is the proper approach. Try this format for your filter:

Forms!FormName!SubFormName.Recordsource = "Select ..."

I use it successfully to build an SQL statement which populates a subform at run time based on the value of a field. Oh, I usually place the field in variable and use the variable in the SQL statement.

mac


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top