I get the error message :"Cannot switch views:(validation (asp.net):If this attribute value is enclosed in quotation marks,the quotation marks must match.
SelectCommand="SELECT Product_Code, Product_ID FROM tbl_Employees,tbl_Factories,tbl_Product_categories ,tbl_Products
WHERE tbl_Factories.Factory_ID = tbl_Product_categories.Factory_ID
AND tbl_Product_categories.Product_category_ID = tbl_Products.Product_category_ID
AND tbl_Employees.Employee_ID = tbl_Product_categories.Product_category_Manager_ID
AND tbl_Products.ProductStartDate <= to_date('" & Format(Date, "MM/DD/YYYY") & "','mm/dd/yyyy')"
If I close SelectCommand
SelectCommand="SELECT Product_Code, Product_ID FROM tbl_Employees,tbl_Factories,tbl_Product_categories ,tbl_Products
WHERE tbl_Factories.Factory_ID = tbl_Product_categories.Factory_ID
AND tbl_Product_categories.Product_category_ID = tbl_Products.Product_category_ID
AND tbl_Employees.Employee_ID = tbl_Product_categories.Product_category_Manager_ID "
without the last line I getn't the errors.
Thanks,Sabina