thefear
Technical User
- Mar 24, 2004
- 20
hiya folks!
okay, I'm not sure how to articulate this problem but it should be straightforward if I just tell you what I'm trying to do.
In vba, I can do this...
Dim stDocName As String
stDocName = "frmTestForm"
DoCmd.OpenForm stDocName
...that is, refer to "frmTestForm" as "stDocName" in order to open a form.
How come I then can't refer to the form like this...?
forms!stDocName!txtTest = "something"
When I try, I'm told form 'stdocname' isn't found.
Any ideas/epiphanies would be appreciated
)
okay, I'm not sure how to articulate this problem but it should be straightforward if I just tell you what I'm trying to do.
In vba, I can do this...
Dim stDocName As String
stDocName = "frmTestForm"
DoCmd.OpenForm stDocName
...that is, refer to "frmTestForm" as "stDocName" in order to open a form.
How come I then can't refer to the form like this...?
forms!stDocName!txtTest = "something"
When I try, I'm told form 'stdocname' isn't found.
Any ideas/epiphanies would be appreciated