G
Guest
I'm new to Access and SQL I am probably making this more complicated then I
need to.
I have a form (frmSite) where I have a set of text boxes that derive their
value from the record source (tblSite). What I would like to do is take
the value of txtSitecode on frmSite and have a list box(lstEquipment)
where all equipment(all equipment has a sitecode assigned) in tblEquipment
with site codes matching txtSitecode is displayed. Whats the best way to
accomplish
my task. I've reviewed the boards and found plenty on JOIN and D-look up but
nothing comparing a form value to a query. Don't think D-lookup will work in
this case as it's multiple tables.
Any help would be appreicaitated.
tblSite tblEquipment
===== ==========
#Sitecode #EquipmentID
Equpiment_sitecode
Equipment_name
SELECT Equipment_sitecode,Equipment_name
FROM tblEquipment
WHERE (((tblEquipment.equipment_sitecode) =(frmSite![txtSitecode].[value]));
need to.
I have a form (frmSite) where I have a set of text boxes that derive their
value from the record source (tblSite). What I would like to do is take
the value of txtSitecode on frmSite and have a list box(lstEquipment)
where all equipment(all equipment has a sitecode assigned) in tblEquipment
with site codes matching txtSitecode is displayed. Whats the best way to
accomplish
my task. I've reviewed the boards and found plenty on JOIN and D-look up but
nothing comparing a form value to a query. Don't think D-lookup will work in
this case as it's multiple tables.
Any help would be appreicaitated.
tblSite tblEquipment
===== ==========
#Sitecode #EquipmentID
Equpiment_sitecode
Equipment_name
SELECT Equipment_sitecode,Equipment_name
FROM tblEquipment
WHERE (((tblEquipment.equipment_sitecode) =(frmSite![txtSitecode].[value]));