22 May 2017 You will get an empty DataTable if no records match, so you can check on the Why not just change the statement a bit to see if the DataTable is either null or .