Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi I've written a program to per

Status
Not open for further replies.

Waynest

Programmer
Jun 22, 2000
321
GB
Hi

I've written a program to perform some SQL updates using hard coded values - so far so good.

I'd like to modify it to accept 3 arguments and return a boolean of true or false to indicate whether it ran without error. There are no forms in the project, it kicks off in Sub Main() which doesnt seem to let me specify arguments.
Help me out here :)

If I ever get the arguments stuff sorted I want to call the program from a VB module in an access project, what command do I need to do this, is it SHELL? How do I receive the return value?

 
i've used this to get command line arguments:

sub main()
dim c as string

c = command


end sub


you may want to research activeX dlls. i've used these a lot in my programming.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top