How to write this VBA? ( again )

  • Thread starter Thread starter Martin
  • Start date Start date
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top