Visual Basic - problema con datagrid

Life is soft - evento anual de software empresarial
 
Vista:

problema con datagrid

Publicado por james (149 intervenciones) el 23/09/2006 17:21:50
la siguiente sentencia :

Visual basic 6.0 y acces xp

Public Function ORDENAR()

Dim rsoRDeNAR As ADODB.Recordset
Dim sqlORDENAR As String

Set rsoRDeNAR = New ADODB.Recordset

rsoRDeNAR.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\SYS\BD\PPTOS.mdb;Persist Security Info=False;Jet OLEDB:Database Password=12345678"

sqlORDENAR = "Select * from PPTO where codigo ='" & TXT_CODIG & "' ORDER BY subc"
rsoRDeNAR.Open sqlORDENAR, , adOpenDynamic, adLockOptimistic

Set MSH_ord.DataSource = rsoRDeNAR // CON EL MSHFLEXGRID SALE LA CONSULTA
***************** ERRORRRRRRRRRRRRRRRRR**********************
'Set DataGrid1.DataSource = rsoRDeNAR // CON EL DATAGRID ME SALE ERROR

End Function

Ayudenme por favor k es lo k esta faltando
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:problema con datagrid

Publicado por LLE (136 intervenciones) el 24/09/2006 02:11:03
que error te sale ?
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