Row filtering

S

siaj

Hi all,
I am having a dataset which is Reading from the XML file. The Dataset has a
table Users with Scheema (US_ID, US_Name). I am attempting to add new user to
this table. for this I want to fetch the max US_ID , increment by One and add
to table
The code is
maxID = dsUser.Tables(0).Select("US_ID=MAX(US_ID)")
The issue I am facing is that I am not getting proper maxID as US_ID is
interpreted as char while reading.
I also tried using the cast expression but I m getting syntax error.

any suggestion will be highly appreciated...

Cheers,
siaj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top