rickyoswaldiow
Programmer
I've got a VB form with a combo box which populates with a list of "Warehouses", when I select one it in turn populates another combo box with a list of "Items". I can then go ahead and create a report based on these selections - What is required now is a check box next to the "Warehouses" combo box labled "All", as in you can select all of the warehouses. When the "All" checkbox is clicks, the "Warehouses" combo is cleared so it has no text string displayed.
I am not very good with the SQL side of things and the code I am using was generated by someone else in the office, at the moment it states
where lngWarehouseID is a value passed into the function from the combo box.
I thought that possibly, instead of setting the "Warehouses" combo box string to "", I could set it to "*", which in other places denotes "All". But this does not work. Any suggestions?
I am not very good with the SQL side of things and the code I am using was generated by someone else in the office, at the moment it states
Code:
tblParts_ReOrder.WarehouseIDFor = " & lngWarehouseID
I thought that possibly, instead of setting the "Warehouses" combo box string to "", I could set it to "*", which in other places denotes "All". But this does not work. Any suggestions?