If datatable contains certain value, continuing the process

Hello guys,
I am trying to achive that, if the data table contain “2021-04” which is variable, will continue to the process.
How can I achieve?
Any help will be appreicated.

Lets assume a datatable with multiple rows and cols. Col with name ABC has value “2021-04”

hasValue = yourDataTable.AsEnumerable.Any(Function (x) x("ABC").toString.Trim().Equals(yourStringVar))

it returns true if in any row a col with name ABC is present with the checked value

Thank you so much.
I will try and will write here

It works! thanks for your help

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.