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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Really basic help or direction needed

Status
Not open for further replies.

jasonphillipstx

Technical User
Dec 10, 2001
43
0
0
US
I have a batch file that is scheduled to run each day. it opens and Access database and print out some reports. I really want to learn how to do this in a vbs file. Everything I find in searching seems much more complex than what I need. Can someone point in the write direction? Maybe a little code even?

Thanks in advance.
 
If the batch works, then why change it? On the other hand, if you want to learn how to work with an access db using vbscript, do a search for "ADO" and "RecordSet".

take a look at these links:
(tailored to web page, but it still uses vbscript)

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Assuming that your access database has an Autoexec macro in it that will print out your reports right away and close the database, you would only need a two line script.

Code:
Set WSHShell = CreateObject("Wscript.Shell")
WSHShell.Run "MSACCESS.EXE databaseName.mdb"

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top