Variable in select


#1

Hi All ,

I am trying to get a variable to a value and then use that in the select statement , but i get this error during the exectution.

DEU is the value that i have to search, is the value of the variable, and not the column name.

thank you


#2

Hello!

Try to pass like this:

paesi.Select("Alpha3 = '" & nazionalit.ToString & "'")

Let me know if worked.

Regards,


#3

It works great!
Thank you!