Hi Guys,
I am trying to figure out how to query an access database table called Phone Numbers from a webpage.
Basically I have textbox (called phn) and a search button (called submit). The value entered in the textbox is queried to the table and if found a msgbox pops up saying "Found" and if not found the message box pops up saying "Not Found."
I have gotten so far as this but I am stuck and can't figure it out:
connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\PhoneNumbers.mdb
sql = "select * from Number.Phone where Number = phn.text"
set cn = createobject("ADODB.Connection")
set cmd = createobject("ADODB.Command")
cn.open connectionString
cmd.ActiveConnection = cn
cmd.CommandText = sql
set rs = cmd.execute
Any help would be appreciated.
I am trying to figure out how to query an access database table called Phone Numbers from a webpage.
Basically I have textbox (called phn) and a search button (called submit). The value entered in the textbox is queried to the table and if found a msgbox pops up saying "Found" and if not found the message box pops up saying "Not Found."
I have gotten so far as this but I am stuck and can't figure it out:
connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\PhoneNumbers.mdb
sql = "select * from Number.Phone where Number = phn.text"
set cn = createobject("ADODB.Connection")
set cmd = createobject("ADODB.Command")
cn.open connectionString
cmd.ActiveConnection = cn
cmd.CommandText = sql
set rs = cmd.execute
Any help would be appreciated.