Jaymin
Registered User.
- Local time
- Tomorrow, 02:28
- Joined
- Oct 24, 2011
- Messages
- 70
Hope some can help me, i have read many cascading threads and tutorials and videos on the subject and still it does not work,
My scenario is that I have a form named “frmMain” on it has three cascading combo boxes, the first named “cboStation”, the second “cboStaff” and the third is “cboPPE” and a sub form called subfrmMaint to enter the required data
tblStation
pk IDStation
stationName
tblStaff
pk IDStaff
firstName
surname
Fk IDStation
tblPPE
Pk IDPPE
chipNumber
fk IDStaff
fk IDMaint
tblMaintenance
pk IDMaint
Date
afterUse
repairs
fk IDPPE
first I use the cboStation to filter the names for the cboStaff then that is used to filter the chip number for the cboPPE, which is then used to filter a subform so I can enter details into the it, called subfrmMaint.
When ever I open the cboStaff I keep getting a form appearing with “Forms!frmMain!cboStation” requesting me to enter something so it can filter combo box but ends up blank.
In the row source field for cboStaff :-
SELECT tblStaff.IDStaff, tblStaff.FirstName FROM tblStaff WHERE (((tblStaff.IDStation)=forms!frmMain!cboStation)) GROUP BY tblStaff.IDStaff, tblStaff.FirstName;
This has confused me, I have spent many hours on this to no avail, hope some can help please.
does the form have to have a record source?
Peter
My scenario is that I have a form named “frmMain” on it has three cascading combo boxes, the first named “cboStation”, the second “cboStaff” and the third is “cboPPE” and a sub form called subfrmMaint to enter the required data
tblStation
pk IDStation
stationName
tblStaff
pk IDStaff
firstName
surname
Fk IDStation
tblPPE
Pk IDPPE
chipNumber
fk IDStaff
fk IDMaint
tblMaintenance
pk IDMaint
Date
afterUse
repairs
fk IDPPE
first I use the cboStation to filter the names for the cboStaff then that is used to filter the chip number for the cboPPE, which is then used to filter a subform so I can enter details into the it, called subfrmMaint.
When ever I open the cboStaff I keep getting a form appearing with “Forms!frmMain!cboStation” requesting me to enter something so it can filter combo box but ends up blank.
In the row source field for cboStaff :-
SELECT tblStaff.IDStaff, tblStaff.FirstName FROM tblStaff WHERE (((tblStaff.IDStation)=forms!frmMain!cboStation)) GROUP BY tblStaff.IDStaff, tblStaff.FirstName;
This has confused me, I have spent many hours on this to no avail, hope some can help please.
does the form have to have a record source?

Peter