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  

Creating OR, AND query in access and getting parametrs frm access



 
 
Thread Tools Display Modes
  #1  
Old July 12th, 2008, 06:50 PM posted to microsoft.public.access.queries
helpneeded
external usenet poster
 
Posts: 9
Default Creating OR, AND query in access and getting parametrs frm access

Hi All,
I am trying to get 7 parameters from access form (textboxes). I have a table
called review. I am trying to generate and predefined query. which will show
all the records from the table, whereever it finds any of the 7 words
(parameters) in any of the fields in the table. The table has 7 fields. User
would enter 7 words in any order. on Click on search, the query should search
the first field for any of the 7 words OR 2nd field with any of the 7 words
or 3rd field and so on. The query should do OR operation in each field, AND
operation when combining the fields.
for ex: user enter "I am a new user". The query should show all the records,
wherevr if finds any of the enter word, like "I" or "am" or "a" or "new" or
"user". Please help. I am new to access. Thanks.
  #2  
Old July 12th, 2008, 07:42 PM posted to microsoft.public.access.queries
[email protected]
external usenet poster
 
Posts: 744
Default Creating OR, AND query in access and getting parametrs frm access

On Jul 12, 12:50*pm, HelpNeeded
wrote:
Hi All,
I am trying to get 7 parameters from access form (textboxes). I have a table
called review. I am trying to generate and predefined query. which will show
all the records from the table, whereever it finds any of the 7 words
(parameters) in any of the fields in the table. The table has 7 fields. User
would enter 7 words in any order. on Click on search, the query should search
the first field for any of the 7 words *OR 2nd field with any of the 7 words
or 3rd field and so on. The query should do OR operation in each field, AND
operation when combining the fields.
for ex: user enter "I am a new user". The query should show all the records,
wherevr if finds any of the enter word, like "I" or "am" or "a" or "new" or
"user". Please help. I am new to access. Thanks.


Yikes. You're looking in 7 columns for the same value? Why? Sounds
like a normalization issue.
  #3  
Old July 16th, 2008, 06:28 AM posted to microsoft.public.access.queries
helpneeded
external usenet poster
 
Posts: 9
Default Creating OR, AND query in access and getting parametrs frm acc

Hi, thanks for replying. Yes, I am searching for same value in 7 cols. User
would enter 7 words, each wordscould be present in any of the cols in any
order, I want to display the records where any of the records (Field)
contains any of the value entered by user.
Thanks.

" wrote:

On Jul 12, 12:50 pm, HelpNeeded
wrote:
Hi All,
I am trying to get 7 parameters from access form (textboxes). I have a table
called review. I am trying to generate and predefined query. which will show
all the records from the table, whereever it finds any of the 7 words
(parameters) in any of the fields in the table. The table has 7 fields. User
would enter 7 words in any order. on Click on search, the query should search
the first field for any of the 7 words OR 2nd field with any of the 7 words
or 3rd field and so on. The query should do OR operation in each field, AND
operation when combining the fields.
for ex: user enter "I am a new user". The query should show all the records,
wherevr if finds any of the enter word, like "I" or "am" or "a" or "new" or
"user". Please help. I am new to access. Thanks.


Yikes. You're looking in 7 columns for the same value? Why? Sounds
like a normalization issue.

 




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 03:07 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.