Cambiar recordsource según acceso
Publicado por Ana (5 intervenciones) el 19/05/2004 22:37:34
Hola, estoy trabajando con un datagrid y un adodc. Estoy intentando que al acceder al datagrid cambie según la persona que ha entrado, pero no me hace caso.
el código es:
if user=client
Adodc1.CommandType = adCmdText
'Adodc1.RecordSource = "select * from Clients where num <= 2001"
If user = auxiliar Then
Adodc1.RecordSource = "select * from Clients where num <= 2001"
Else
Adodc1.RecordSource = "select * from Pacients_General where llit >= 2001"
End If
No me funciona
el código es:
if user=client
Adodc1.CommandType = adCmdText
'Adodc1.RecordSource = "select * from Clients where num <= 2001"
If user = auxiliar Then
Adodc1.RecordSource = "select * from Clients where num <= 2001"
Else
Adodc1.RecordSource = "select * from Pacients_General where llit >= 2001"
End If
No me funciona
Valora esta pregunta


0