Hi, When I try to print a route card report on printer by selecting any Production id criteria, it will print that report. Even if It has no data available, it will be printed. I want to avoid printing report if there is no data available for selected Production id. I have used the below code for avoiding this but not sure what statement to use. select prodRoute where prodRoute.ProdId == prodTable.ProdId; if (!prodRoute) { //statement to avoid printing } Please suggest any ways of achieving this. Thanks in advance.
↧