MSACCESSIT
New member
- Local time
- Today, 04:03
- Joined
- Mar 14, 2012
- Messages
- 2
Hello,
I'm new to the forum.
I've been banging my head against the wall trying to get this to work:
I am using vba within MS ACCESS
I want to use passable parameters within a form command:
Here is my function code:
Function TESTFUN(FN, TB As String)
DoCmd.OPENFORM (FN), , , , , acDialog
Forms(FN).Text(TB).SetFocus
End Function
Here is my MACRO which calls the function:
TESTFUN("PARTA","010")
The PARTA form does open up OK, but the forms command does not work.
I'm getting a Run-time error '2450', Microsoft Access cannot find the
referenced form 'PARTA'.
Any help would be appreciated.
Thanks in advance.
I'm new to the forum.
I've been banging my head against the wall trying to get this to work:
I am using vba within MS ACCESS
I want to use passable parameters within a form command:
Here is my function code:
Function TESTFUN(FN, TB As String)
DoCmd.OPENFORM (FN), , , , , acDialog
Forms(FN).Text(TB).SetFocus
End Function
Here is my MACRO which calls the function:
TESTFUN("PARTA","010")
The PARTA form does open up OK, but the forms command does not work.
I'm getting a Run-time error '2450', Microsoft Access cannot find the
referenced form 'PARTA'.
Any help would be appreciated.
Thanks in advance.