Ask Experts Questions for FREE Help !
    jenagan's Avatar
    jenagan Posts: 3, Reputation: 1
    New Member

    Oct 26, 2005, 09:23 PM
    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"


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

    can anyone please give better solution to compare strings..
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man

    Oct 27, 2005, 07:38 AM
    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.

Not your question? Ask your question View similar questions


Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.

Check out some similar questions!

Compare processors [ 3 Answers ]

Hi there, I need to compare a pentium 4 3.0 Ghz processor with a AMD Athlon 64 3200+ fx 2.2 ghz processor, which one of these 2 processors is better? Both in terms of performance and value for money. Cause I think the P4 clock speed is higher than the AMD, but still the AMD processor is more...

Compare [ 4 Answers ]

Compare the vietnam war to the war in iraq.

Ceiling Fan and String [ 1 Answers ]

My 2 year old threw a ball of string over the ceiling fan while I wasn't looking and it wrapped around the fan and caused it to come to a grinding halt. I am a newbie and would like to take the fan apart but don't know if there is an easy way to get the string out. Ceiling fan is a Hampton Bay. ...

Compare msn and Yahoo messenger [ 1 Answers ]

Which of these two programs is better? Can I run both. Will they conflict? Thanks, J

Compare binary files [ 1 Answers ]

Hi there, Where can I find a freeware to compare binary files? (I don't want to compare 2 documents, these are 2 binary files). Thx in advance!

View more questions Search