P
Peter Rohlfs
I have and Access 2000 database that is used by multiple buildings.
In my Queries I would have a condition Command() and it would pull up the
records for the building passed by the / cmd in their shortcut.
Command is also used in event procedures.
When I try to run this database under Access 2007 it says the function
Command is undefined.
The help menu says the function is still there BUT it also has outdated
infromation about the northwind database (the path includes Office11 not
Office12 and then name isn't Northwind 2007).
I tried to create a public function to return the command:
Public Function Command1() As String
Dim MyStr As String
MyStr = "X"
MyStr = Command
Command1 = MyStr
End Function
The MyStr var is there so I could use a Watch on it.
Command sets Mystr to "" even though I had set Access
Options/Advanced/Command Line Arguments with some text.
When in a form's procedure I use Command I get the argument...
i.e. LblText.caption = Command in the form Load procedure sets the label to
the command line argument.
So I don't understand why Command doesn't work in the function.
I alos don't understand why it can't be used in Queries anymore.
Any suggestions/solutions would be appreciated.
Thanks,
Peter Rohlfs
In my Queries I would have a condition Command() and it would pull up the
records for the building passed by the / cmd in their shortcut.
Command is also used in event procedures.
When I try to run this database under Access 2007 it says the function
Command is undefined.
The help menu says the function is still there BUT it also has outdated
infromation about the northwind database (the path includes Office11 not
Office12 and then name isn't Northwind 2007).
I tried to create a public function to return the command:
Public Function Command1() As String
Dim MyStr As String
MyStr = "X"
MyStr = Command
Command1 = MyStr
End Function
The MyStr var is there so I could use a Watch on it.
Command sets Mystr to "" even though I had set Access
Options/Advanced/Command Line Arguments with some text.
When in a form's procedure I use Command I get the argument...
i.e. LblText.caption = Command in the form Load procedure sets the label to
the command line argument.
So I don't understand why Command doesn't work in the function.
I alos don't understand why it can't be used in Queries anymore.
Any suggestions/solutions would be appreciated.
Thanks,
Peter Rohlfs