Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Queries

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-22-2005, 08:17 AM
ITMSTMELL
Guest
 
Posts: n/a
Criteria matches 1st part of another Field

undefinedHi, apologies if this has been answered before but can't find anything relevant!

Trying to match one field to the first 5 digits in another i.e.

Field 1 = 55667

Field 2 = 5566785431 so would want to match the 1st five digits in field 2...

Any ideas?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 06-22-2005, 01:16 PM
Pat Hartman Pat Hartman is offline
Super Moderator
 
Join Date: Feb 2002
Location: Stratford,Ct USA
Posts: 20,669
Pat Hartman is a jewel in the roughPat Hartman is a jewel in the roughPat Hartman is a jewel in the rough
If your field is TEXT, NOT NUMBER, you can use the Left() function.

fld1 = Left(fld2, 5)
__________________
Bridge Players Still Know All the Tricks
Reply With Quote
  #3  
Old 06-23-2005, 07:54 AM
ITMSTMELL
Guest
 
Posts: n/a
Thanks

Pat, thanks for your help!

Cheers

Dan
Reply With Quote
  #4  
Old 06-23-2005, 07:54 AM
ITMSTMELL
Guest
 
Posts: n/a
Thanks

Pat, thanks for your help!

Cheers

Dan
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Report With Multiple Image Pages Following Each Group chaddiesel Reports 0 05-30-2005 03:16 PM
Double criteria on one field problem jancliff Queries 1 05-27-2005 12:26 PM
Passing criteria to a query field tjs206 Queries 1 08-26-2002 02:01 PM
part of criteria taken from text box from a form ivanteo Queries 2 05-05-2002 10:57 PM


All times are GMT -8. The time now is 06:37 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World