|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using select max sql stmt
How to get the select max results fr sql stmt using vb? example: rs = select max(id),max(seq_no) from transaction how to get tis 2 value. Is it using
Dim id, seqNo If rs.EOF = False Then id = rs.fields(0) seqNo=rs.fields(1) End If |
|
#2
|
|||
|
|||
|
In your sql use something like "select max(whatever) as myMax ..."
Then in the resulting recordset, look for rs("MyMax")
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Using select max sql stmt |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|