|
-
Aug 8th, 2002, 09:29 AM
#1
Thread Starter
New Member
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
-
Aug 8th, 2002, 09:34 AM
#2
Fanatic Member
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.
-
Aug 8th, 2002, 09:57 AM
#3
Thread Starter
New Member
yeah cheers
pog mo thoooooooooiin
-
Aug 9th, 2002, 06:54 AM
#4
Thread Starter
New Member
-
Aug 9th, 2002, 06:55 AM
#5
Fanatic Member
-
Aug 9th, 2002, 07:00 AM
#6
Frenzied Member
I was dreaming when i wrote this so sue me if i go to fast....
VB Code:
evenlessblah = evenlessblah mod 100
'if it is a number
evenlessblah = right$(evenlessblah,2)
'if it is a string
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|