Raising an event in Access 2000

  • Thread starter Thread starter ts383
  • Start date Start date
T

ts383

Guest
I need to call the Click event for a button my form when a different button is clicked. (I need to fire the Add New record button when I click the Import Old Record button)

I've tried

Call btnNewApp_Click

But it doesn't work.


If I physically click the New App button, then click my import button, the code works. If I run my Import button only, which is supposed to call btnNewApp_Click, it doesn't work.


Any suggestions/
 
Leave out call?

As Pat says the syntax is correct. I wonder what's wrong?

Usually, I don't bother with "Call", and just put

btnNew_APP_Click

If this doesn't work, and I guess it probably won't, you could try changing

"Private Sub btnNew_APP_Click()"

to

"Public Sub btnNew_APP_Click()"

Then you'll be able to use:

Me.btnNew_APP_Click
 

Users who are viewing this thread

Back
Top Bottom