DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   How to compare 2 string from different table using vb6 badly need help (http://www.daniweb.com/forums/thread157323.html)

cebubinary Nov 14th, 2008 9:43 am
How to compare 2 string from different table using vb6 badly need help
 
Private Sub Command1_Click()
Set rs1 = DB.OpenRecordset("Table1", dbOpenDynaset)



If rs1.EOF = True Then
MsgBox "Record is Empty"
Else
MsgBox "Got IT"
rs1.MoveLast
If Not rs1.EOF Then rs1.MoveFirst

Do While Not rs1.EOF


If rs1!Name <> "" And rs1!age <> "" Then

Set rs2 = DB.OpenRecordset("SELECT Name FROM Table2 WHERE Name like '" & rs1!Name & "*' ;")
If rs2.EOF = False Then
List1.AddItem (rs2!Name)
End If
End If

rs1.MoveNext
Loop
End If



If i will run this code with the given david godz c from table1 and david godz cagayan from table 2 it will display a david godz cagayan in the list

but my problem is how am i suppose to output same david godz cagayan in the list if i where
give a david godz c. from table1 and david godz cagayan from table2.

by the way im using ms access.

shogwapo Nov 26th, 2008 10:15 pm
Re: How to compare 2 string from different table using vb6 badly need help
 
fuck men! your english is too deep, i cannot swim.......

pnorten462 Dec 2nd, 2008 5:43 am
Re: How to compare 2 string from different table using vb6 badly need help
 
i can not understand your question. can you give me more explanation?


All times are GMT -4. The time now is 5:06 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC