Results 1 to 6 of 6

Thread: Doubt with recordset

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2005
    Posts
    87

    Question Doubt with recordset

    Hi! I have a doubt with recordset and mshflexgrid.

    I have a recordset with this rows

    Microsoft
    Linux
    Unix
    Solar

    As we all know, when the mshflexgrid shows the recordset it shows everything starting from the first row (Microsoft). I want to make mshflexgrid to ignore the first row and start from the next so it shows

    Linux
    Unix
    Solar

    I hope you can understan my english and help me!

    Thanks!
    Last edited by Frehley; Jan 7th, 2006 at 08:55 PM.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Doubt with recordset

    Post the code that you are using to load the flexgrid.

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Doubt with recordset

    You have your flex bounded to another control? Or you populate it manually?

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2005
    Posts
    87

    Re: Doubt with recordset

    It is
    VB Code:
    1. Set MSHFlexGrid.DataSource = rs
    ( on the form load )
    Thanks!

  5. #5

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2005
    Posts
    87

    Re: Doubt with recordset

    These are the recordsets:
    VB Code:
    1. Private Sub Form_Initialize()
    2.  
    3. strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\database.mdb"
    4. Set cn = New ADODB.Connection
    5.  
    6. cn.ConnectionString = strconn
    7. cn.CursorLocation = adUseClient
    8. cn.Open
    9.  
    10. Set rs = New ADODB.Recordset
    11. rs.Open "select viajes.desde, viajes.hasta,viajes.id_socio,viajes.anombrede,viajes.id_auto, viajes.espera, viajes.hora from viajes", cn, adOpenDynamic, adLockOptimistic
    12.  
    13. Set rs2 = New ADODB.Recordset
    14. rs2.Open "choferes", cn, adOpenDynamic, adLockOptimistic
    15.  
    16. Set rs3 = New ADODB.Recordset
    17. rs3.Open "socios", cn, adOpenDynamic, adLockOptimistic
    18.  
    19. Set rs4 = New ADODB.Recordset
    20. rs4.Open "select choferes.id_auto, viajes.desde, viajes.hasta, socios.id_socio, viajes.espera from viajes, socios, choferes where viajes.id_socio = socios.id_socio and viajes.id_auto = choferes.id_auto", cn, adOpenDynamic, adLockOptimistic
    21.  
    22. Set rs5 = New ADODB.Recordset
    23. rs5.Open "reservaciones", cn, adOpenDynamic, adLockOptimistic
    24.  
    25. Set rs6 = New ADODB.Recordset
    26. rs6.Open "select choferes.id_auto,choferes.chofer, choferes.estado  from choferes", cn, adOpenDynamic, adLockOptimistic
    27.  
    28. Set Form1.rs7 = New ADODB.Recordset
    29. rs7.Open "select socios.id_socio, socios.nombre, socios.telefono, socios.direccion from socios", cn, adOpenDynamic, adLockOptimistic
    30.  
    31. Set rs8 = New ADODB.Recordset
    32. rs8.Open "select saldo.id_auto, saldo.saldo, saldo.fecha from saldo", cn, adOpenDynamic, adLockOptimistic
    33.  
    34. Set rs9 = New ADODB.Recordset
    35. rs9.Open "select saldo.saldo, saldo.id_auto, saldo.fecha from saldo", cn, adOpenDynamic, adLockOptimistic
    36.  
    37. End Sub

    I have to ignore "No Borrar", there is one in each recordset, alwais in the first row.

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width