|
-
Mar 8th, 2001, 04:18 PM
#1
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
-
Mar 8th, 2001, 04:22 PM
#2
Addicted Member
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, ...
-
Mar 8th, 2001, 04:28 PM
#3
I am sorry I dont understand, please explain further.
the primarykey have 4 fields (fielda,fieldb,fieldc,fieldd)
Thanks,
-
Mar 8th, 2001, 05:10 PM
#4
-
Mar 9th, 2001, 09:09 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|