
14/01/2002, 14:08
|
 | | | Fecha de Ingreso: enero-2002
Mensajes: 701
Antigüedad: 23 años, 4 meses Puntos: 8 | |
Re: <SELECT DISTINCT> que esta mal??? ahi va!
Set conexion=Server.CreateObject("ADODB.Connectio n")
conexion.Open "Driver={Microsoft Visual Foxpro Driver};SourceType=DBF;SourceDb=docente.dbf"
'SQL="SELECT * FROM docente.dbf ORDER BY rutprof ASC;"
SQL="SELECT DISTINCT rutprof FROM docente.dbf ORDER BY rutprof ASC;"
set registros=conexion.Execute(SQL)
if not registros.EOF then
while not registros.EOF
rutprof=registros.fields("rutprof")
campo1=registros.fields("campo1")
campo1=registros.fields("campo2")
registros.movenext
wend
end if
set conexion= nothing
set registros= nothing |