diff --git a/printerlookup.asp b/printerlookup.asp index 9d780b0..6a010c7 100644 --- a/printerlookup.asp +++ b/printerlookup.asp @@ -24,7 +24,7 @@ End If Set cmd = Server.CreateObject("ADODB.Command") cmd.ActiveConnection = objConn -cmd.CommandText = "SELECT printerid FROM printers WHERE address = ? AND isactive = 1" +cmd.CommandText = "SELECT printerid FROM printers WHERE ipaddress = ? AND isactive = 1" cmd.Parameters.Append cmd.CreateParameter("@addr", 200, 1, 100, lookupValue) Set rs = cmd.Execute()