Server Error in '/' Application.

Syntax error: Missing operand after '_People' operator.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SyntaxErrorException: Syntax error: Missing operand after '_People' operator.

Source Error:


Line 135:                strFilter += " and Desks<=" & desks(1)
Line 136:            End If
Line 137:            dv.RowFilter = strFilter
Line 138:        End If
Line 139:

Source File: D:\VirtualServers\TheBonMarchCentre\Site201704\Site\masterpages\BMC2010_Offices02.master.vb    Line: 137

Stack Trace:


[SyntaxErrorException: Syntax error: Missing operand after '_People' operator.]
   System.Data.ExpressionParser.Parse() +2940
   System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +156
   System.Data.DataView.set_RowFilter(String value) +194
   MasterPages_BMC2010_Offices02.getSuitesByDesks(String strDesks) in D:\VirtualServers\TheBonMarchCentre\Site201704\Site\masterpages\BMC2010_Offices02.master.vb:137
   MasterPages_BMC2010_Offices02.Page_Load(Object sender, EventArgs e) in D:\VirtualServers\TheBonMarchCentre\Site201704\Site\masterpages\BMC2010_Offices02.master.vb:28
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4057.0