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

Access Filtering Question

Status
Not open for further replies.

sk1hotpepr

Technical User
Jul 11, 2003
63
US
I have a continuous form that I want to allow the user to choose in the header of the form a district once. when the user chooses a district, the continuous section (detail) will be made visible, allowing the user to enter multiple records for that district.

my problem is - i want to filter to only show records that match the district, if there are none, let the user create a new record anyway. I hope this makes sense. How do I accomplish the filtering for no records?
 
If the Record Source for the subform is made dependent on the combo, the user should be able to enter records. For example:
SELECT tblDistrict.ID, tblDistrict.Name FROM tblDistrict WHERE tblDistrict.ID=[Forms]![frmMainForm]![cboDistrict]));

The After Update event for the combo would need to include a requery for the subform.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top