I would like to know how to retrieve data from an access database with vbscript. Lets say my table, in the database, is called ComputerNames and has two fields. ComputerID and Computer. I know what Computer is, but I want the value of ComputerID.
How would I do that with vbscript?? I thought the below would work, but no luck... I'm thinking the code needs to change, but don't know exactly what to change.
strComputer = "HELLO12"
set oRS = oConn.Execute("SELECT ComputerID FROM ComputerNames WHERE ComputerName = '" & strComputer & "'"
intID = oRS("ComputerID".Value
oRS.Close
How would I do that with vbscript?? I thought the below would work, but no luck... I'm thinking the code needs to change, but don't know exactly what to change.
strComputer = "HELLO12"
set oRS = oConn.Execute("SELECT ComputerID FROM ComputerNames WHERE ComputerName = '" & strComputer & "'"
intID = oRS("ComputerID".Value
oRS.Close