Fix printerlookup.asp: Use correct column name ipaddress
Printers table uses 'ipaddress' not 'address' per schema. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,7 @@ End If
|
|||||||
|
|
||||||
Set cmd = Server.CreateObject("ADODB.Command")
|
Set cmd = Server.CreateObject("ADODB.Command")
|
||||||
cmd.ActiveConnection = objConn
|
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)
|
cmd.Parameters.Append cmd.CreateParameter("@addr", 200, 1, 100, lookupValue)
|
||||||
Set rs = cmd.Execute()
|
Set rs = cmd.Execute()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user