I am filtering the option in one combo box cboStatus based on the entry to another combo box cboLocalityTeam. cboStatus uses lookup list tlkpStatus with StatusCode (PK), StatusDesc and LocalityCode (FK) while cboLocalityTeam uses lookup tlkpLocality with Localitycode (PK) and LocalityDesc.
I've done the filter with a query qryServiceLookup:
Expand|Select|Wrap|Line Numbers
- SELECT tlkpStatus.StatusCode, tlkpStatus.ServiceDesc, tlkpStatus.LocalityCode
- FROM tlkpStatus
- WHERE (((tlkpStatus.LocalityCode)=[Forms]![frmSub]![cboLocalityTeam]));
frmSub is a subform that sits within frmMain; the above works fine when I open frmSub directly but when I open it within frmMain I get an "'Enter Paramaeter Value' = [Forms]![frmSub]![cboLocalityTeam" error. I assume [Forms]![frmSub]![cboLocalityTeam needs to be changed to reflect that frmSub is a subform within frmMain but I'm not sure and haven't managed to change it successfully. Appreciate any guidance!!