CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: urgent help

  1. #1
    Join Date
    Sep 2001
    Posts
    16

    urgent help

    i'll make a comparison between two fields in database(comparison in string) what must I do?


  2. #2
    Join Date
    Jul 2000
    Location
    Hawaii
    Posts
    281

    Re: urgent help

    strings may be compared directly (alphabetical ordering)

    If rs!field1 > rs!field2 Then

    if you have some other comparison in mind please specify


  3. #3
    Join Date
    Sep 2001
    Posts
    1

    Re: urgent help

    how can I compare the first string in record 1 with the first string in record 2. Example. record 1 have 011000 and record 2 have 102100. so, how can we compare the first string (0) with the first string in record 2(1).


  4. #4
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: urgent help


    Dim str1 as string, str2 as string
    str1 = rst("SomeField")
    rst.movenext
    str2 = rst("SomeField")




    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured