|
-
May 7th, 2005, 10:52 PM
#1
Thread Starter
Addicted Member
A basic Access question about calling a sub from a button
Hi all!
I have this form on which lies a button that calls another form. Very simply, in the On Open event of this button, I call a sub that will open the form, as follow:
=Open("frmMyForm")
Now the code read something like this:
Function Open(MyForm As string) As Integer
Select Case MyForm
Case "frmMyForm"
DoCmd.OpenForm MyForm
bla bla bla...
Can I pass the form as an object instead of a string? If so what do I have to change in the above?
I tried (and tons of variations):
=Open(frmMyForm)
Function Open(MyForm as object)
with no obvious result.
Anyone's two cents would be appreciated.
p.s. Access 2000
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
|