PC Review


Reply
Thread Tools Rate Thread

Call code on another form ?

 
 
SpookiePower
Guest
Posts: n/a
 
      21st Feb 2006
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 ?

 
Reply With Quote
 
 
 
 
Al Camp
Guest
Posts: n/a
 
      21st Feb 2006
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 ?
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I call VBA subs from different spreadsheet from code behind form? clhamilton Microsoft Excel Misc 1 12th Jun 2009 05:47 PM
RE: how to call a module function from form code Wayne-I-M Microsoft Access 2 10th Jun 2008 12:33 PM
how can i call login form in the vb code Microsoft Access Forms 0 5th Jun 2005 06:42 AM
disable call waiting on a local call puts in area code JMB Windows XP General 0 17th Feb 2004 10:32 PM
disable call waiting on a local call puts in area code JMB Windows XP Print / Fax 0 16th Feb 2004 11:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 PM.