paulmcdonnell
Ready to Help
- Local time
- Today, 10:40
- Joined
- Apr 11, 2001
- Messages
- 167
Hi Guys, (again)
Thanks to Jack Cowley for helping me with the last request but I still cant quite get the command button to translate the data source to the form.
I'm using this: Dim D As String
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Form-Unresolved-callbacks"
D = "todays callbacks"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Then the Form ON Open event uses an If to check what D is, it then opens the datasource.
But an error message of 'D is not defined' pops up...Why doesn't this translate across the foms. Or am I going the wrong way about it completely.
Many Thanks guys
Paul
Thanks to Jack Cowley for helping me with the last request but I still cant quite get the command button to translate the data source to the form.
I'm using this: Dim D As String
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Form-Unresolved-callbacks"
D = "todays callbacks"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Then the Form ON Open event uses an If to check what D is, it then opens the datasource.
But an error message of 'D is not defined' pops up...Why doesn't this translate across the foms. Or am I going the wrong way about it completely.
Many Thanks guys
Paul