G
Guest
I have a Combo Box that when a selection from the list, the data selected is
saved in the table that the form, holding the combo box, is based on (In my
example, it a city is selected and entered in the table then it will be
excluded from the combo box list). The Raw Source of the combo box is as
follow:
SELECT tblCity.ID, tblCity.City
FROM tblCity
WHERE (((tblCity.City) Not In (select city from tblRepCity)))
ORDER BY tblCity.City;
The After Update event of the combo box reads:
Private Sub ComCity_AfterUpdate()
Me.frmRepSubCitySub.Requery
Forms.frmRepSubCity.Requery
Me.Refresh
End Sub
How can I manage to add an "Add All" option from the combo box list so if
selected all the data listed in my combo box will store in my table instead
of have to make selections one-by-one? I have tried using several combination
of UNION but nothing is working. Feel free to re-write my SQL statement for
clarity.
Thank you,
Silvio
saved in the table that the form, holding the combo box, is based on (In my
example, it a city is selected and entered in the table then it will be
excluded from the combo box list). The Raw Source of the combo box is as
follow:
SELECT tblCity.ID, tblCity.City
FROM tblCity
WHERE (((tblCity.City) Not In (select city from tblRepCity)))
ORDER BY tblCity.City;
The After Update event of the combo box reads:
Private Sub ComCity_AfterUpdate()
Me.frmRepSubCitySub.Requery
Forms.frmRepSubCity.Requery
Me.Refresh
End Sub
How can I manage to add an "Add All" option from the combo box list so if
selected all the data listed in my combo box will store in my table instead
of have to make selections one-by-one? I have tried using several combination
of UNION but nothing is working. Feel free to re-write my SQL statement for
clarity.
Thank you,
Silvio