Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT MAX(VAL(id))+1 AS id FROM stock INTO DBF newid

Status
Not open for further replies.

madurrani

Programmer
Sep 23, 2008
7
Example item list: 1100A, 1110U, 1112I

In foxpro & Visual Foxpro I used to issue following command to get new item id.

SELECT MAX(VAL(id))+1 AS id FROM stock INTO DBF temp\newid

How can i use this command in VB.NET/SQL

Thanks,

Aamir Durrani
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top