Update record selected in a comboBox from a button (2 Viewers)

Tom d

Member
Local time
Today, 16:15
Joined
Jul 12, 2022
Messages
84
I want to update the selected record in a comboBox from a button not add a new record. I can add a record and delete a record.
 

Attachments

How many threads do you have going on this topic? You've been given lots of advice. I even posted a sample db for your review. Starting new threads this way will not increase the help you get. It will keep people from responding.
 
How many threads do you have going on this topic? You've been given lots of advice. I even posted a sample db for your review. Starting new threads this way will not increase the help you get. It will keep people from responding.
All the other treads are marked Completed. Nowhere does any attached file show how to update a record. IF you have any that shows how to update a record please attach.
 
This can be done lots of ways. If you are talking the Authors form you have plenty of real estate to have a the name field as a bound control on the form. It could be hidden until a vaule is selected from the combo. You could simply bind the whole form to the authors table and have a textbox with the author name as the control source. When you select from listbox it moves to that author. Then allow the user to edit the textbox. On the combos on entry event requery the combo.
Or you could make it a dialog pop up. Open the pop up to the correct record selected in the combo and open acdialog to stop code execution. Then in the next line of code requery the combo.
 
This can be done lots of ways. If you are talking the Authors form you have plenty of real estate to have a the name field as a bound control on the form. It could be hidden until a vaule is selected from the combo. You could simply bind the whole form to the authors table and have a textbox with the author name as the control source. When you select from listbox it moves to that author. Then allow the user to edit the textbox. On the combos on entry event requery the combo.
Or you could make it a dialog pop up. Open the pop up to the correct record selected in the combo and open acdialog to stop code execution. Then in the next line of code requery the combo.
Could you give an example.
 
You want a pop up or a on the main form?
 
You may want to look at this example of having a single lookup list to manage these simple lookups. Unlikely to support a large list like authors, but OK for the rest.
 

Users who are viewing this thread

Back
Top Bottom