X
XMan
The parameter value window keeps popping up( which I really don't want)
whenever I run this code to change the source query for my subform. I do
this on update event of a listbox.
strSQL = "SELECT * FROM LOCATIONS INNER JOIN LOCATIONS_WITHIN ON
LOCATIONS.LOCATION_UI = LOCATIONS_WITHIN.LOCATION_SUB_UI "
strSQL = strSQL & "WHERE LOCATIONS.LOCATION_TOP_UI = " &
Me![lbxSite].Column(0)
Me!frmUnit.Form.RecordSource = strSQL
TIA.
whenever I run this code to change the source query for my subform. I do
this on update event of a listbox.
strSQL = "SELECT * FROM LOCATIONS INNER JOIN LOCATIONS_WITHIN ON
LOCATIONS.LOCATION_UI = LOCATIONS_WITHIN.LOCATION_SUB_UI "
strSQL = strSQL & "WHERE LOCATIONS.LOCATION_TOP_UI = " &
Me![lbxSite].Column(0)
Me!frmUnit.Form.RecordSource = strSQL
TIA.