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:
cproudlock
2025-12-12 10:04:13 -05:00
parent 0d263fccdb
commit 95072d96fc

View File

@@ -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()