Select error


i had the following error:

Assign : Syntax error: Missing operand after ‘ID’ operator.

i had used:“Personal ID like’”+“?”+“'”)

where dt2 is a datatable

Hi @abdel,

Can you try the column name within . Try“[Personal ID] like’”+“?”+“’”)

Thank you,

but i think it a problem in the header name,
is there any methode to get the headers name?


Please check below links:

  1. How To Find Respective Column Name of a specific Item in a data table - #5 by aksh1yadav



i had to use dt3.Columns.ColumnName.ToString for a single columns “D” ?!

What should i do with datatable.Columns(Column_name) but column is integer? please help me thank in advance