Call code on another form ?

  • Thread starter Thread starter SpookiePower
  • Start date Start date
S

SpookiePower

I have these two public sub on my main form that can undo changes
to my textboxes.

Public Sub btnUndo_Click()

Public Sub UndoEdits()
From my textboxes (afterupdate) on the main form I call the UndoEdits()

code and it works just fine.

I also have a subform on my main form that I want to undo changes
on, using the UndoEdits().

I have made both the subs to Public, But how do I call UndoEdits() from
my subform ?

I have tryed to write it this way -
Form_NameOfTheForm.NameOfTheVBAProcedure

In my case Form_slukkeresubform.UndoEdits

But nothing happends. What's wrong ?
 

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