I'm trying to set a field value of a query to a variable. This is what I have so far:
Function pkgLabel()
Dim Descr as String
Descr = Request.QueryString("Descr")
Dim sqldisplay as String
sqldisplay = "SELECT pkgInsert, pkgLabel FROM Pics WHERE " & Descr
Dim conn as OleDbConnection
conn = new OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=C:\local\db\dev.mdb")
conn.Open()
Dim cmd as OleDbCommand
cmd = new OleDbCommand (sqldisplay, conn)
I'm trying to set the value of pkgInsert to variable x and pkgLabel to variable y. Thanx.
Function pkgLabel()
Dim Descr as String
Descr = Request.QueryString("Descr")
Dim sqldisplay as String
sqldisplay = "SELECT pkgInsert, pkgLabel FROM Pics WHERE " & Descr
Dim conn as OleDbConnection
conn = new OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=C:\local\db\dev.mdb")
conn.Open()
Dim cmd as OleDbCommand
cmd = new OleDbCommand (sqldisplay, conn)
I'm trying to set the value of pkgInsert to variable x and pkgLabel to variable y. Thanx.