Eddyoftheyear
Technical User
Question: I have a detail finance data in a table. I added a checkbox and combobox that link to invoice ID table, when the user select invoiceID from the combobox and ceck the checkbox, copy of this record to go to the invoice detail table with the right invoiceID.
So I created apend query and worked nicly. and I placed
afterupdate event for the checkbox:
docmd.setwarnings False
docmd.openquery "Details_qry"
docmd.setwarnings True
The only problem I am facing is that when select invocie number from combobox and click on the checkbox, it copy the records multiple time. example:
Inv# amount desc
4403 50.00 food
4403 70.00 drink
4403 20.00 car
4403 80.00 train
if i select the checkbox in 5 records, it will copy them total 20 times. If I click on one of the records, it copies them once.
Howe can I make this work correctly?
So I created apend query and worked nicly. and I placed
afterupdate event for the checkbox:
docmd.setwarnings False
docmd.openquery "Details_qry"
docmd.setwarnings True
The only problem I am facing is that when select invocie number from combobox and click on the checkbox, it copy the records multiple time. example:
Inv# amount desc
4403 50.00 food
4403 70.00 drink
4403 20.00 car
4403 80.00 train
if i select the checkbox in 5 records, it will copy them total 20 times. If I click on one of the records, it copies them once.
Howe can I make this work correctly?