I need an example of a vbscript that connects to an Access table and
returns a string variable based on a WHERE clause. For example, I have
a autonumber field in numerical sequence, and I want to return a name
for each record.
I also need a script that will query a table and return a total count
of all records.
Dim strDatabase
Dim strTableName
Dim recordCount
Dim strName
strDatabase = "\\xxxxxxx\db.mdb"
strTableName = "tblAccounts"
'ACCESS CONNECTION STRING VARIABLE
xConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDatabase
strName =