Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Problem in compare string (https://www.askmehelpdesk.com/showthread.php?t=14164)

  • Oct 26, 2005, 09:23 PM
    jenagan
    Problem in compare string
    I'm trying to compare a existing with other string retriving from databse , Its not get into the if statement even there is a data retrive same as existing one...

    Dim epf_no As String
    Dim epf_no_frmdb As String

    epf_no = "1022"

    Adodc2.Refresh

    With Adodc2.Recordset
    Do Until Adodc2.Recordset.EOF
    epf_no_frmdb = !EPFno
    If epf_no = epf_no_frmdb Then
    txtName.Text = !name
    End If
    .MoveNext
    Loop
    End With


    can anyone please give better solution to compare strings..
  • Oct 27, 2005, 07:38 AM
    ScottGem
    First, it would help if you indicated what language or platform you are working with. It appears you may be using VB or Access VBA, but I'm not sure which. Second, you need to explain what you want to do if they are equal or not equal.

  • All times are GMT -7. The time now is 10:35 AM.