How to compare 2 string from different table using vb6 badly need help

Reply

Join Date: Jan 2008
Posts: 18
Reputation: cebubinary is an unknown quantity at this point 
Solved Threads: 0
cebubinary cebubinary is offline Offline
Newbie Poster

How to compare 2 string from different table using vb6 badly need help

 
0
  #1
Nov 14th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 1
Reputation: shogwapo is an unknown quantity at this point 
Solved Threads: 0
shogwapo shogwapo is offline Offline
Newbie Poster

Re: How to compare 2 string from different table using vb6 badly need help

 
0
  #2
Nov 26th, 2008
**** men! your english is too deep, i cannot swim.......
Last edited by Narue; Dec 1st, 2008 at 3:44 pm. Reason: language
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 8
Reputation: pnorten462 is an unknown quantity at this point 
Solved Threads: 1
pnorten462 pnorten462 is offline Offline
Newbie Poster

Re: How to compare 2 string from different table using vb6 badly need help

 
0
  #3
Dec 2nd, 2008
i can not understand your question. can you give me more explanation?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC