|
-
Aug 11th, 2003, 02:48 PM
#1
Thread Starter
Addicted Member
How to find a record using DataRow? (RESOLVED)
VB Code:
'myRS is a DAO recordset
myRS.FindFirst "FIRSTNAME='" & Text1.Text & "' AND LASTNAME='" & Text2.Text & "'"
How to write a code using a DataRow to find a record with the criteria above?
Thanks.
Last edited by AlvaroF1; Aug 12th, 2003 at 03:06 PM.
-
Aug 12th, 2003, 02:12 AM
#2
Addicted Member
Here we go:
'myRs is datatable
Dim objCurr() As DataRow
objCurr =myRs.select("FIRSTNAME='" & Text1.Text & "'
AND LASTNAME='" & Text2.Text & "'")
Dim c As DataRow
For Each c In objCurr
msgbox(c.item("FIRSTNAME").tostring & " " & _
c.item("LASTNAME").tostring)
Next
I hope that helps.
regard j
-
Aug 12th, 2003, 03:07 PM
#3
Thread Starter
Addicted Member
-
Aug 13th, 2003, 02:16 AM
#4
Addicted Member
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
|