Results 1 to 5 of 5

Thread: Finding a records (ADO)

  1. #1
    JuanCarlos60
    Guest
    I have a table with a primarykey (four fields) how can i build a criteria to find or seek a record in the recordset?


    TIA

  2. #2
    Addicted Member HMPA's Avatar
    Join Date
    Mar 2001
    Location
    Dominican Republic
    Posts
    172
    use:
    DBFCentro.Recordset.FindFirst ("Cod_Centro = " & Val(DBFParam.Recordset.Fields("Param4")))
    or a SQL.
    data1.recordsource = "SELECT * FROM Tabla1 WHERE Variable1 = 1;"
    .Net my life; my passion, my poison, ...

  3. #3
    Guest

    Angry

    I am sorry I dont understand, please explain further.


    the primarykey have 4 fields (fielda,fieldb,fieldc,fieldd)

    Thanks,

  4. #4
    Guest

    Please help me


  5. #5
    Guest

    Question

    Waht is wrong??? error 3001


    cCriterio = "Cod_Ciudad = '" & DEMkt.rsVTA005006!FCOST & "'"

    cCriterio = cCriterio & " And " & "Cod_Vende = '" & DEMkt.rsVTA005006!FNRVEN & "'"

    cCriterio = cCriterio & " And " & "Cod_Cliente = '" & DEMkt.rsVTA005006!FNRCLI & "'"

    cCriterio = cCriterio & " And " & "Cod_Articulo = '" & DEMkt.rsVTA005006!F1ARTI & "'"

    cCriterio = cCriterio & " And " & "Tipo_Articulo = '" & DEMkt.rsVTA005006!F1TIPR & "'"


    DEMkt.rsVENTASMKT.Find (cCriterio)



    TIA

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