can anyone help, please? I am getting this error when running my both.
Whether “dtdata” contains any data in it? @Raffy_MC
Your dtdata does not have any data, that’s why you are seeing this error.
Have you declared the dtdata varible (of type DataTable). Initialize dtdata variable wiith “Nothing” while declaring it.
@Raffy_MC You might need to change the Scope of that variable to the outermost scope and check, and make sure you don’t have two variables of the same name.