A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

A field (string) is into other field (string)



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2010, 11:03 PM posted to microsoft.public.access.queries
Victor2020
external usenet poster
 
Posts: 1
Default A field (string) is into other field (string)

Using 2 tables I want to get the rows that match where the content of the
field (string) is equal or is into other field (string) from other table.
  #2  
Old June 4th, 2010, 11:10 PM posted to microsoft.public.access.queries
Jörn Bosse[_3_]
external usenet poster
 
Posts: 20
Default A field (string) is into other field (string)

Am 05.06.2010 00:03, schrieb Victor2020:
Using 2 tables I want to get the rows that match where the content of the
field (string) is equal or is into other field (string) from other table.


You can use the StrComp-Function
http://office.microsoft.com/en-us/ac...289141033.aspx

or the InStr-Function
http://office.microsoft.com/en-us/ac...288571033.aspx

in a query.

Regards
Jörn
  #3  
Old June 5th, 2010, 02:15 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default A field (string) is into other field (string)

Victor2020 wrote:

Using 2 tables I want to get the rows that match where the content of the
field (string) is equal or is into other field (string) from other table.



SELECT tbl1.*, tbl2.*
FROM tbl1, tbl2
WHERE tbl1.field Like "*" & tbl2.field & "*"
Or tbl2.field Like "*" & tbl1.field & "*"

--
Marsh
MVP [MS Access]
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.