hello,
What I'm trying to do is create a list of classes based on what Area and Station they are in. I have the following tables set up already:
tblClasses
(Fields: "ClassID", "ClassName" , "Descriptio ns")
tblArea
(Feilds: "AreaID", "AreaName")
tblAreaStation
(Fields: "AreaStationID" , "StationNam e", "AreaID")
tblClassAreaSta tion
(Fields: "ClassAreaStati onID", "ClassID", "AreaStationID" )
I have an unbound form (frmClassLookup ) with two unbound combo boxes, cboArea and cboStation. (cboStation's row source based on cboArea's choice).
I also have a query "qryClasslookup " that shows the classname, Description, Area, Station, and placed criteria for Area to [Forms]![frmClassLookup]![cboArea], (ditto with station) and I have an event procedure on cboStation_Afte rUpdate to open the query.
Problem 1: the query comes up blank (when I run the query outside the form it works fine, but using the comboboxes it doesn't work)
Problem 2: I would like the query to open in the same window, in a subform, not in a seperate datasheet view
Thanks for any help you can give!!
VC
What I'm trying to do is create a list of classes based on what Area and Station they are in. I have the following tables set up already:
tblClasses
(Fields: "ClassID", "ClassName" , "Descriptio ns")
tblArea
(Feilds: "AreaID", "AreaName")
tblAreaStation
(Fields: "AreaStationID" , "StationNam e", "AreaID")
tblClassAreaSta tion
(Fields: "ClassAreaStati onID", "ClassID", "AreaStationID" )
I have an unbound form (frmClassLookup ) with two unbound combo boxes, cboArea and cboStation. (cboStation's row source based on cboArea's choice).
I also have a query "qryClasslookup " that shows the classname, Description, Area, Station, and placed criteria for Area to [Forms]![frmClassLookup]![cboArea], (ditto with station) and I have an event procedure on cboStation_Afte rUpdate to open the query.
Problem 1: the query comes up blank (when I run the query outside the form it works fine, but using the comboboxes it doesn't work)
Problem 2: I would like the query to open in the same window, in a subform, not in a seperate datasheet view
Thanks for any help you can give!!
VC
Comment