The Wizzard
02-03-2003, 12:02 AM
I have this code...
Set objList = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM List WHERE CarID = " & Request.QueryString("CarID")
objList.Open strSQL, objConection, adOpenStatic, adLockReadOnly, adCmdText
It gets the info from the querystring "CarID"
I have multiple tables, and I want to use a querystring to determine what table to connect to...
Something like this??
Set objList = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM Request.QueryString("CarID")
objList.Open strSQL, objConection, adOpenStatic, adLockReadOnly, adCmdText
Set objList = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM List WHERE CarID = " & Request.QueryString("CarID")
objList.Open strSQL, objConection, adOpenStatic, adLockReadOnly, adCmdText
It gets the info from the querystring "CarID"
I have multiple tables, and I want to use a querystring to determine what table to connect to...
Something like this??
Set objList = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM Request.QueryString("CarID")
objList.Open strSQL, objConection, adOpenStatic, adLockReadOnly, adCmdText