Command Line with Vista runtime adds character

  • Thread starter Microsoft Newsgroups
  • Start date
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.
 
B

Bob Howard

I've tested with both A2K3 runtime and A2K7 runtime --- both under Vista.
And I don't have any issues passing a /cmd. bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top