J
Jacob
I have a form with a subform listing a group of clients from a table. I
am trying to filter the results on a button labeled cty. I want the customer
subform to only list the records based on my selection from a drop down box
above the button. here is my code. Can someone please tell me why it will
not work. All I get is a blank subform.
Me.cus.RowSource = "SELECT tblCustomer.[Customer Name], tblCustomer.Id,
tblCustomer.City, tblCustomer.State, tblCustomer.Contact FROM tblCustomer
WHERE tblCustomer.City=Forms!frmSwitch!cty"
cus is the subform
am trying to filter the results on a button labeled cty. I want the customer
subform to only list the records based on my selection from a drop down box
above the button. here is my code. Can someone please tell me why it will
not work. All I get is a blank subform.
Me.cus.RowSource = "SELECT tblCustomer.[Customer Name], tblCustomer.Id,
tblCustomer.City, tblCustomer.State, tblCustomer.Contact FROM tblCustomer
WHERE tblCustomer.City=Forms!frmSwitch!cty"
cus is the subform