How to write this VBA? ( again )

M

Martin

( I really in need of the code and example. Thanks! )

In a form, I click into a combo box and selected one of the record in the
combo box.

And then , I want to click a command button nearby the combo box to delete
this record.

How should I write the VBA about this command button?


Would you please give me an actually example and explain it?

Thank you.


Martin
 
G

Garret

Do you have it so the item selected in the Combo Box makes the record
current on the form? If so, you can then make a Command button using
the wizard (select the magic wand at the top of the toolbar) and make
it so it deletes the record. I checked out the code and am not sure
how it works exactly, but maybe someone else can tell.
 
Top