Spookie,
From a subform to a main...
Forms!frmYourMainFormName.YourSubName
--
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
"SpookiePower" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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 ?
>