|
-
May 26th, 2004, 02:59 PM
#1
Thread Starter
Hyperactive Member
Dumb one
Using SQL Server and ASP.Net, how do I open a recordset and set a variable to equal a field in that recordset. I only have notepad with me right now so it is proving difficult.
Dim NewID as Integer
Recordset = "Select MAX(ID) From myTable"
NewID = Rs.Fields("ID")
is the just of it.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|