PC Review


Reply
Thread Tools Rate Thread

Command Line Prompt

 
 
HockeyPlayerCSU
Guest
Posts: n/a
 
      14th Feb 2006
Sorry about the repeat post, I lost track of the other one.

warrior, not quite sure how passing the variable in the query to VBA
code would work.

I run from the command prompt passing it a job number i.e.
msaccess.exe "c:\office\Jobs.mdb" /cmd 00000163

Now my question becomes: I need to run a query that pulls all the info
related to job number 00000163. In SQL view, the Where Job = Command()
comes back with an error, saying that it was an undefined function in
command.

If in a module I create:
Function Command()
~~~~~~~~~
End Function

What does ~~~~~~~~ need to be to have it pass back the value 00000163
from the command prompt?

Thanks,
Mark

 
Reply With Quote
 
 
 
 
HockeyPlayerCSU
Guest
Posts: n/a
 
      14th Feb 2006
Finally Got It!

It is:
Function CheckCommandLine()
Dim CmdLine As Variant
CmdLine = Command()

CheckCommandLine = CmdLine
EndFunction

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Prompt (cmd.exe) command line interface Larry__Weiss Windows XP General 7 23rd Jul 2006 03:42 PM
command line prompt showing how long last command took? sillyhat@yahoo.com Microsoft Windows 2000 CMD Promt 13 31st May 2006 04:18 PM
command line prompt showing how long last command took? sillyhat@yahoo.com Windows XP General 1 13th May 2006 02:03 AM
Command line and C:\ prompt felicia Windows XP General 10 26th Apr 2005 02:28 PM
command line prompt Billy Cormic Microsoft VB .NET 3 15th Oct 2003 08:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 PM.