M
Microsoft Newsgroups
Here's a diller, folks.
I'm passing a command line, "/cmd Demo" to an Access XP app. In my startup
code I use a test like this:
If Command = "Demo" then
Do Something
End If
Trying to figure out why that wasn't working when running under Vista and
the Access XP runtime.
Answer: under the above conditions the string returned by the VBA Command
Function [e.g., strTest=Command()] is FIVE characters long.
So my test for If Command = "Demo" worked correctly under all earlier
versions of Access and all earlier versions of Windows, AND it works
correctly under Vista but running full Access XP rather than runtime.
Surely I'm not the first to discover this. Is there more to the story?
Does this happen under Access 2003 and 2007?
Eager to hear,
--Mark Hammer
Lake Oswego, Oregon, U.S.
I'm passing a command line, "/cmd Demo" to an Access XP app. In my startup
code I use a test like this:
If Command = "Demo" then
Do Something
End If
Trying to figure out why that wasn't working when running under Vista and
the Access XP runtime.
Answer: under the above conditions the string returned by the VBA Command
Function [e.g., strTest=Command()] is FIVE characters long.
So my test for If Command = "Demo" worked correctly under all earlier
versions of Access and all earlier versions of Windows, AND it works
correctly under Vista but running full Access XP rather than runtime.
Surely I'm not the first to discover this. Is there more to the story?
Does this happen under Access 2003 and 2007?
Eager to hear,
--Mark Hammer
Lake Oswego, Oregon, U.S.