Make a button the default button

  • Thread starter Thread starter Erwin Bormans
  • Start date Start date
E

Erwin Bormans

Hi all

If got a form with 3 buttons.

First they need to search for a customer and after that for all the articles
related for that customer.

So in the code for searching a customer I put:

Me.knp_Bok_Zoeken.Default = True

at the end.

But he doesnot make this the default button :S Or at least when I enter a
customer and press enter he searches for that customer and if I press enter
again he does nothing (instead of running the code to find the articles)

Does anybody now what I'm doing wrong?

Kind regards
Erwin
 
Erwin

If you open the form in design view, select the button you wish to have as
the Default command button, open that control's properties, and set Default
= Yes, that button should show as the default on the form.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

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

Similar Threads


Back
Top