B
Blair
Hi I am fairly new at access, I have searched through all of the discussion
posts and found a few useful threads. However I'm not sure how to connect
what I've read to my problem.
I have a main form that is based on the table containing monitoring
information for a site. Each monitoring occasion has a unique Id an info
such as the date and basic info is collected. Each monitoring record is
linked to a unique property. But there can be many monitoring occurences for
each site.
I then have a subform which is where the detailed info for the monitoring
reports is. These reports can be one of three different types of reports.
There can be many reports for each monitoringID. Each report has a unique id
and also has the monitorID.
Okay... My subform then has a combo box which lets you pick the land parcel
that the monitor report is based on. Each Property can be made of several
land parcels. I want the combo box for the landID to be populated with only
the landIDs that belong to the property that is being monitored.
Confused? I have a propertyID table that only contains the legal land
descriptions. Each legal land ID has a unique id and is related to the
propertyis in the property table. So I need to get the legal land id from
the legal land tables that match with the property id in the monitoring
table. I wrote a query that works alone but I can't seem to get this to work
for the combo box. here's the query:
SELECT tblLegalLand.LegalLandID FROM tblLegalLand WHERE
tblLegalLand.PropertyID = (SELECT tblMonitoring.PropertyID FROM tblMonitoring
WHERE tblMonitoring.MonitorID = tblMonitorHealthReport.MonitorID);
How do I get this query to work so that these values populate a combobox?
Any help would be greatly appreciated. Thanks in advance....
posts and found a few useful threads. However I'm not sure how to connect
what I've read to my problem.
I have a main form that is based on the table containing monitoring
information for a site. Each monitoring occasion has a unique Id an info
such as the date and basic info is collected. Each monitoring record is
linked to a unique property. But there can be many monitoring occurences for
each site.
I then have a subform which is where the detailed info for the monitoring
reports is. These reports can be one of three different types of reports.
There can be many reports for each monitoringID. Each report has a unique id
and also has the monitorID.
Okay... My subform then has a combo box which lets you pick the land parcel
that the monitor report is based on. Each Property can be made of several
land parcels. I want the combo box for the landID to be populated with only
the landIDs that belong to the property that is being monitored.
Confused? I have a propertyID table that only contains the legal land
descriptions. Each legal land ID has a unique id and is related to the
propertyis in the property table. So I need to get the legal land id from
the legal land tables that match with the property id in the monitoring
table. I wrote a query that works alone but I can't seem to get this to work
for the combo box. here's the query:
SELECT tblLegalLand.LegalLandID FROM tblLegalLand WHERE
tblLegalLand.PropertyID = (SELECT tblMonitoring.PropertyID FROM tblMonitoring
WHERE tblMonitoring.MonitorID = tblMonitorHealthReport.MonitorID);
How do I get this query to work so that these values populate a combobox?
Any help would be greatly appreciated. Thanks in advance....