C
CafeenMan
Sorry, but I don't even know how to ask the question so my web searches have
been unproductive.
I have three tables:
Facilities
Insurances
FacilityInsurance
The FacilityInsurance table contains the IDs of Facilities and the
Insurances each Facility accepts.
So I have two ListBoxes. One contains the Insurances accepted by the
selected Facility.
The other ListBox contains all Insurances that are left over.
My problem is how to fill the second list box. If I use the same query as I
used to select the accepted Insurances except using the "not equal to"
operator all I get back is insurances in the that other facilities accept
that aren't accepted by the selected facility. In other words, it's listing
insurances based on the FacilityInsurance table instead of the Insurance
table.
So this doesn't work:
"...WHERE FacilityID<>" & SelectedFacilityID
I'm sure there's a simple way to do this but I'm not well versed in SQL. I
usually use design view and then when it's working I switch to SQL view,
copy, paste and modify into my VB code.
Thanks.
been unproductive.
I have three tables:
Facilities
Insurances
FacilityInsurance
The FacilityInsurance table contains the IDs of Facilities and the
Insurances each Facility accepts.
So I have two ListBoxes. One contains the Insurances accepted by the
selected Facility.
The other ListBox contains all Insurances that are left over.
My problem is how to fill the second list box. If I use the same query as I
used to select the accepted Insurances except using the "not equal to"
operator all I get back is insurances in the that other facilities accept
that aren't accepted by the selected facility. In other words, it's listing
insurances based on the FacilityInsurance table instead of the Insurance
table.
So this doesn't work:
"...WHERE FacilityID<>" & SelectedFacilityID
I'm sure there's a simple way to do this but I'm not well versed in SQL. I
usually use design view and then when it's working I switch to SQL view,
copy, paste and modify into my VB code.
Thanks.