sub5
Programmer
- Oct 12, 2005
- 104
Hello All
I would like to code this principle, is it possible?
(I know how to do everything except delete a row from an array based on a criteria)
I would like to have a multidimensional array with field1 and field2. Say it is populated:
field1 field2
Joe bloggs
John smith
An SQL is then built pulling customer status from seperate tables.
The SQL is used as a row source in a combobox.
The cbobox dropdown lists:
Joe Bloggs Existing customer
John Smith new customer
The user selects Joe Bloggs and then fills in an unbound textbox with a region name and then clicks update. Joe Bloggs and the region are added as a record to a table.
AND
Joe Bloggs is removed from the array, the SQL is rebuilt so only John Smith appears in the combobox list.
Currently I append records to a temp table and use that table as the combobox rowsource. They are deleted using the combobox value as the criteria.
I am trying to get away from the temp table and the convoluted programming that goes into populating the temp table.
Any comments most welcome.
I would like to code this principle, is it possible?
(I know how to do everything except delete a row from an array based on a criteria)
I would like to have a multidimensional array with field1 and field2. Say it is populated:
field1 field2
Joe bloggs
John smith
An SQL is then built pulling customer status from seperate tables.
The SQL is used as a row source in a combobox.
The cbobox dropdown lists:
Joe Bloggs Existing customer
John Smith new customer
The user selects Joe Bloggs and then fills in an unbound textbox with a region name and then clicks update. Joe Bloggs and the region are added as a record to a table.
AND
Joe Bloggs is removed from the array, the SQL is rebuilt so only John Smith appears in the combobox list.
Currently I append records to a temp table and use that table as the combobox rowsource. They are deleted using the combobox value as the criteria.
I am trying to get away from the temp table and the convoluted programming that goes into populating the temp table.
Any comments most welcome.