G
Guest
Greetings
I'm using Access 2002 SP3. I have a form in which clicking on a button is supposed to open a second form and pass a string to it. So in the "On click" event procedure for the button, I coded this
Dim stDocName as String, s as Strin
..
stDocName = "OrgForm
DoCmd.OpenForm stDocName, , , , , ,
If the value of "s" happens to begin with an "=" character, the "=" gets stripped off somehow by the time the form's Open event procedure is called. For example if s has the value "=12345" (as verified by Debug) when OpenForm is invoked, then at the start of the second form's Open event procedure I will see (again with Debug) that Me.OpenArgs has the value "12345". Other leading characters are passed correctly, e.g. if s contains "*12345", the entire string is passed correctly from the first form to the second
Can anyone explain this, or does it only happen to me
All help appreciated
- Scott.
I'm using Access 2002 SP3. I have a form in which clicking on a button is supposed to open a second form and pass a string to it. So in the "On click" event procedure for the button, I coded this
Dim stDocName as String, s as Strin
..
stDocName = "OrgForm
DoCmd.OpenForm stDocName, , , , , ,
If the value of "s" happens to begin with an "=" character, the "=" gets stripped off somehow by the time the form's Open event procedure is called. For example if s has the value "=12345" (as verified by Debug) when OpenForm is invoked, then at the start of the second form's Open event procedure I will see (again with Debug) that Me.OpenArgs has the value "12345". Other leading characters are passed correctly, e.g. if s contains "*12345", the entire string is passed correctly from the first form to the second
Can anyone explain this, or does it only happen to me
All help appreciated
- Scott.