D
DougW via AccessMonster.com
Hi,
I have a form that I am using for data entry for a table "Ordered Items".
I want to use the form to edit the value in one field of existing records in
this table.
There is an unbound listbox A on my form which displays columns from a query.
I use the value of column 3 in the selected row of this listbox to drive
another query, which populates another listbox B, also currently unbound, on
the same form. To accomplish this I have set column 3 in listbox A as the
"bound" column.
I have created a macro for the "onclick" event in listbox A, which requeries
listbox B.
The query driving listbox B has a criteria set equal to the bound value in
listbox A.
Basically listbox B refreshes dynamically as rows are clicked in listbox A.
So far this works as I would like.
I would like the bound value of listbox B to select the record for editing in
my table.
I would like the field in that record to be set equal to column 6 of listbox
A when I click an action button. It seems like I will need to refer to two
different columns in listbox A (column 3 to drive listbox B, and column 6 to
update the field in the table).
Can anybody give me some direction on how I might proceed? thanks!
I have a form that I am using for data entry for a table "Ordered Items".
I want to use the form to edit the value in one field of existing records in
this table.
There is an unbound listbox A on my form which displays columns from a query.
I use the value of column 3 in the selected row of this listbox to drive
another query, which populates another listbox B, also currently unbound, on
the same form. To accomplish this I have set column 3 in listbox A as the
"bound" column.
I have created a macro for the "onclick" event in listbox A, which requeries
listbox B.
The query driving listbox B has a criteria set equal to the bound value in
listbox A.
Basically listbox B refreshes dynamically as rows are clicked in listbox A.
So far this works as I would like.
I would like the bound value of listbox B to select the record for editing in
my table.
I would like the field in that record to be set equal to column 6 of listbox
A when I click an action button. It seems like I will need to refer to two
different columns in listbox A (column 3 to drive listbox B, and column 6 to
update the field in the table).
Can anybody give me some direction on how I might proceed? thanks!