
17/01/2008, 07:23
|
| | Fecha de Ingreso: marzo-2007
Mensajes: 39
Antigüedad: 18 años, 1 mes Puntos: 0 | |
MSHFlexGrid puñetero... Hola gente estoy intetando sacar los datos de mi BD con un select y añadiendo esta informacion a un MSHFlexGrid pero me da error y no se pk, os dejo el codigo de lo que hago a ver si alguien me puede ayudar.
rs.Open "Select * from Booking where staff_id='" & TextEngID.Text & "'", cn, adOpenDynamic, adLockOptimistic, adCmdText
If (rs.BOF And rs.EOF) Then
MsgBox (" staff member does not have bookings")
Else
Set MSHFlexGrid1.DataSource = rs
rs.Close
End If
El error que me da es:
Uneable to acces data.Dattasource settings may be incorrect or the DataSource functionality could be limited.
Gracias.. |