Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query on character field

Status
Not open for further replies.

antopapa

IS-IT--Management
Mar 5, 2003
1
GB
I would like to run a querie on Access, wherby if the field has a total lenght of 10 digits.
How could i view the query whereby it reads only digit place number 7 and 8.
I need to know what is the command for doing that kind of lookup.

Please let me know

Thanks already.
 
hi there
if i got your point, you can use "Select field1,field2... From TableName where Mid(field1,7,2)=[whatever you're interested in]
this will check characters in position 7 and 8 (together)

hope it helps
Erez
 
check out the len() and mid() functions

len([fieldname])=10
mid([fieldname,7,2)

I think this is what your after if not post back
 
oops sorry erez, I was typing while you posted your reply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top