I realise that my queries may be very basic but I know nothing about SQL and have spent a whole day struggling to get these 2 problems resolved. I'd be very grateful for any help. I've attached a copy of the database.
Problem 1 - Combo Box Blank
With the use of Access Help I have managed to get the first 2 combo boxes of 3 to link perfectly. However I can't get the third box working.
The Service Type field within FRMJobRequests, when clicked on, should display the Service Type and its Project Code. Then upon selection only the Project Code should appear in the combo box. I'm just getting a blank.
The query I'm using is: QRYCBOProjectCode, which looks like:
SELECT TBL3BuildingServiceType.projectcode, TBL3BuildingServiceType.servicetype
FROM tbl2sitebuildings INNER JOIN tbl3buildingservicetype ON tbl2sitebuildings.BuildingName=tbl3buildingservicetype.BuildingName
WHERE (((tbl2sitebuildings.Buildingname)=Forms!FRMJobRequests.cbobuilding));
Problem 2 - Combo boxes don't work on a subform
Again, with the use of Access Help I've managed to get the combo boxes in FRMSSupplierInvoicePayments to work perfectly. However when I set this form as a subform in FRMJobRequests it all goes pear shaped. I realise I need to include the FRMJobRequests somewhere in the query but I'm at a loss as to how to do this.
The query I'm using is QRYCBOSitesBuildings, which looks like:
SELECT TBL2SiteBuildings.Buildingname
FROM tbl1sites INNER JOIN tbl2sitebuildings ON tbl1sites.siteid=tbl2sitebuildings.siteID
WHERE (((tbl1sites.siteID)=Forms!FRMJobRequests.cboSite));
Problem 1 - Combo Box Blank
With the use of Access Help I have managed to get the first 2 combo boxes of 3 to link perfectly. However I can't get the third box working.
The Service Type field within FRMJobRequests, when clicked on, should display the Service Type and its Project Code. Then upon selection only the Project Code should appear in the combo box. I'm just getting a blank.
The query I'm using is: QRYCBOProjectCode, which looks like:
SELECT TBL3BuildingServiceType.projectcode, TBL3BuildingServiceType.servicetype
FROM tbl2sitebuildings INNER JOIN tbl3buildingservicetype ON tbl2sitebuildings.BuildingName=tbl3buildingservicetype.BuildingName
WHERE (((tbl2sitebuildings.Buildingname)=Forms!FRMJobRequests.cbobuilding));
Problem 2 - Combo boxes don't work on a subform
Again, with the use of Access Help I've managed to get the combo boxes in FRMSSupplierInvoicePayments to work perfectly. However when I set this form as a subform in FRMJobRequests it all goes pear shaped. I realise I need to include the FRMJobRequests somewhere in the query but I'm at a loss as to how to do this.
The query I'm using is QRYCBOSitesBuildings, which looks like:
SELECT TBL2SiteBuildings.Buildingname
FROM tbl1sites INNER JOIN tbl2sitebuildings ON tbl1sites.siteid=tbl2sitebuildings.siteID
WHERE (((tbl1sites.siteID)=Forms!FRMJobRequests.cboSite));