A
Anand
Hi
I am using an A2k application. I have to filter the
records in a subform based on a date range entered by user
in the Main form. I am using the following code:
DoCmd.ApplyFilter, "[frmDailyAttendance].Form![AttDate]
BETWEEN " & StartDate & " AND " & EndDate & ""
It doesnt work. When I run the code it prompts me to
enter the value for "[frmDailyAttendance].Form![AttDate]"
Is it possible to filter a subform based on values in a
Main form?
If so, where am I going wrong?
TIA
Anand
I am using an A2k application. I have to filter the
records in a subform based on a date range entered by user
in the Main form. I am using the following code:
DoCmd.ApplyFilter, "[frmDailyAttendance].Form![AttDate]
BETWEEN " & StartDate & " AND " & EndDate & ""
It doesnt work. When I run the code it prompts me to
enter the value for "[frmDailyAttendance].Form![AttDate]"
Is it possible to filter a subform based on values in a
Main form?
If so, where am I going wrong?
TIA
Anand