G
Guest
Dear all,
I have a programming problem as below (only small part shown)
Set R1 = New ADODB.Recordset
R1.Open "ttEMP", D, adOpenKeyset, adLockPessimistic, adCmdTable
A = "LAB like '" + R2.Fields(0) + "'"
R1.Find (A)
This code is fine for one criteria, but if more than one criteria, it fails.
My code is below
A = "LAB like '" + R2.Fields(0) + "' and Name '" + R2.Fiels(1) + "'"
Any idea on this. Can 'Find' function use for more than one criteria search.
IF yes, what is the correct language as I cannot find it in the help.
Jack
I have a programming problem as below (only small part shown)
Set R1 = New ADODB.Recordset
R1.Open "ttEMP", D, adOpenKeyset, adLockPessimistic, adCmdTable
A = "LAB like '" + R2.Fields(0) + "'"
R1.Find (A)
This code is fine for one criteria, but if more than one criteria, it fails.
My code is below
A = "LAB like '" + R2.Fields(0) + "' and Name '" + R2.Fiels(1) + "'"
Any idea on this. Can 'Find' function use for more than one criteria search.
IF yes, what is the correct language as I cannot find it in the help.
Jack