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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can an Access database be searched?



 
 
Thread Tools Display Modes
  #1  
Old June 5th, 2004, 11:54 PM
Bruce W.1
external usenet poster
 
Posts: n/a
Default Can an Access database be searched?

Using a SQL statement, can a Microsoft Access database be searched for a
word in a column (amongst other words in the cell)? SQL Server has a
'CONTAINS' SQL statement. Can this be used with Access?

Thanks for your help.
  #2  
Old June 6th, 2004, 12:30 AM
MyndPhlyp
external usenet poster
 
Posts: n/a
Default Can an Access database be searched?


"Bruce W.1" wrote in message
...
Using a SQL statement, can a Microsoft Access database be searched for a
word in a column (amongst other words in the cell)? SQL Server has a
'CONTAINS' SQL statement. Can this be used with Access?


You can probably use the CONTAINS keyword in a pass-through SQL command to
an SQL Server database. As for using it against an Access table, you're
limited to LIKE as far as I know. The difference between the two is that
CONTAINS does a proximity search of words in a column whereas LIKE searches
for a string match at the beginning, end or middle of a column. But you
probably already knew that. :-/


  #3  
Old June 6th, 2004, 01:51 AM
Van T. Dinh
external usenet poster
 
Posts: n/a
Default Can an Access database be searched?

You cau use the Like operator with wild cards like:

SELECT *cient.
FROM Table1
WHERE [SearchField] Like "*WhatYouSearchFor*"

Alternatively, you can use the InStr() function but "Like" in more effi

--
HTH
Van T. Dinh
MVP (Access)




"Bruce W.1" wrote in message
...
Using a SQL statement, can a Microsoft Access database be searched for a
word in a column (amongst other words in the cell)? SQL Server has a
'CONTAINS' SQL statement. Can this be used with Access?

Thanks for your help.



 




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 11:12 AM.


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