|
-
Mar 10th, 2002, 04:13 AM
#1
cmdwash_click has to be public in that form
then
call form1.cmdwash_click()
-
Mar 10th, 2002, 04:18 AM
#2
Hyperactive Member
If you have huge amounts of code under one Command Button, its really hard to follow it out. Its best if you were to split it up and in a situation like that what you could do is use
Public Function or Sub what ever is more usefull
Its the best when you split if up, its easier to understand.
-
Mar 10th, 2002, 04:31 PM
#3
Frenzied Member
no luck.. i changed it to public so it looks like
public sub cmdwash_click()
however it still doesnt work.. some error like method or data member not found
-
Mar 10th, 2002, 04:53 PM
#4
Hyperactive Member
Form Code:
Public Sub Command1_Click()
MsgBox "clicked"
End Sub
Form Code End
Module Code:
Public Function ClickButton()
Call Form1.Command1_Click
End Function
Module Code End
I Hope this Helps!
-
Mar 11th, 2002, 07:14 AM
#5
Junior Member
reverse
it may be an idea to put the huge amound of lines in the module
and call it from your cmd.
greetz Pietor
Frisia Rulez the world
luctor et ejactulato!
-
Mar 11th, 2002, 07:47 AM
#6
Hyperactive Member
Include a public Sub on the form, that calls cmd_click().
Then call that from the module.
-
Mar 11th, 2002, 08:36 AM
#7
Hyperactive Member
This works
Public Sub ClickIt()
Form1.cmdwash.Value = True
End Sub
In Form1
Call ClickIt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|