Sep 21, 2005 #1 PB90 Technical User Jul 11, 2005 65 US I would like to create a query based on the 3rd & 4th characters in a field. The total field is 8 characters. ex. find all records where those characters are "FR" field name is trkNum. Any ideas?
I would like to create a query based on the 3rd & 4th characters in a field. The total field is 8 characters. ex. find all records where those characters are "FR" field name is trkNum. Any ideas?
Sep 21, 2005 #2 LittleSmudge Programmer Mar 18, 2002 2,848 GB How about:- SELECT * FROM tblName WHERE Mid([trkNum], 3, 2) = 'FR' 'ope-that-'elps. G LS spsinkNOJUNK@yahoo.co.uk Remove the NOJUNK to use. Upvote 0 Downvote
How about:- SELECT * FROM tblName WHERE Mid([trkNum], 3, 2) = 'FR' 'ope-that-'elps. G LS spsinkNOJUNK@yahoo.co.uk Remove the NOJUNK to use.
Sep 21, 2005 #3 PHV MIS Nov 8, 2002 53,708 FR Another way: WHERE trkNum Like '??FR*' Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Another way: WHERE trkNum Like '??FR*' Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886