Thanks Jimmy. I got a couple of different errors.
My view fields are Branch_OfficeID and Estimate_Year. My filter fields in my form are named 'branchoffice' and 'estyear'
First, I tried the following:
<query database='#Marketing_Resumes#' table='MaxEstimateNumber_Web' ><columns><column name='Branch_OfficeID'/><column name='Estimating_Group'/><column name='Estimate_Year'/><column name='Next_Estimate'/></columns><filter><and><eq><column name='Branch_OfficeID'/><value>", branchoffice, "</value></eq><eq><column name='Estimate_Year'/><value>",estyear, "</value></eq></and></filter></query>
I got an error that it could not convert varchar branchoffice to int. I checked my branch office dropdown list and changed the data type to integer but this didn't make a difference.
I then tried:
concat("<query database='#Marketing_Resumes#' table='MaxEstimateNumber_Web' ><columns><column name='Branch_OfficeID'/><column name='Estimating_Group'/><column name='Estimate_Year'/><column name='Next_Estimate'/></columns><filter><and><eq><column name='Branch_OfficeID'/><value>",branchoffice, "</value></eq><eq><column name='Estimate_Year'/><value>",estyear, "</value></eq></and></filter></query>")
When I used this one I got the error: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentException: Invalid parameter
Parameter name: queryXml ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.