Results 1 to 6 of 6

Thread: Quick Quetion

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    6

    Quick Quetion

    I am query a database with a number entered into a text box.

    i.e

    select blah from moreblah where lessblah = " & evenlessblah & " "

    the number, that is entered into the above mentioned text box ....and used in query, is a concatination of of a 4 digit sheet number and a 2 digit location number. the 2 digit location number is at the end of this whole number.
    Can i query the db by using these 2 numbers alone? i.e
    enter 121234 into a text ox and just query the db using the last 2 digit e.g 34??


    Hope this is trivial to some of ye


    sir stupidhead
    alex

  2. #2
    Fanatic Member Bonker Gudd's Avatar
    Join Date
    Mar 2000
    Location
    Saturn
    Posts
    748
    You could try something like:

    select blah from moreblah where (lessblah % 100) = 34

    Do not attempt this if you have a vegetable on your head.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    6
    yeah cheers

    pog mo thoooooooooiin
    alex

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2002
    Posts
    6
    anyone wish to help
    alex

  5. #5
    Fanatic Member Bonker Gudd's Avatar
    Join Date
    Mar 2000
    Location
    Saturn
    Posts
    748
    Did you try my filth?

  6. #6
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478

    I was dreaming when i wrote this so sue me if i go to fast....

    VB Code:
    1. evenlessblah = evenlessblah mod 100
    2. 'if it is a number
    3. evenlessblah = right$(evenlessblah,2)
    4. 'if it is a string
    5.  
    6. select blah from moreblah where lessblah = " & evenlessblah & " "
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

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