Visual Basic - URGENTE NECESITO MANUAL ADO

Life is soft - evento anual de software empresarial
 
Vista:

URGENTE NECESITO MANUAL ADO

Publicado por celso (96 intervenciones) el 01/08/2001 11:44:53
HOLA NECESITO URGENTEMENTE UN BUEN MANUAL DE ADO Y DE SQL, ALGUIEN SABE DONDE CONSEGIRLO?? GRACIAS.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:URGENTE NECESITO MANUAL ADO

Publicado por Pedro Perfeito (1 intervención) el 02/08/2001 15:16:39
I hope this function help you.
Pedro Perfeito
Porto-Portugal

'-------------------------------------------------------------------
'VERIFICA SE DETERMINADO CAMPO E CHAVE
'-------------------------------------------------------------------
Function eChave(Tabela As ADOX.Table, nomeCampo As String) As Boolean

On Error GoTo TrataErro

Dim idx As ADOX.Index
Dim col As ADOX.Column

eChave = False

For Each idx In Tabela.Indexes
If idx.PrimaryKey Then
For Each col In idx.Columns
If col.Name = nomeCampo Then
eChave = True
End If
Next col
End If
Next idx
Exit Function

'Rotina de erro
TrataErro:
Exit Function
End Function
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar