Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 21st, 2003, 11:17 AM
ravislayer ravislayer is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 10 ravislayer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
searching

I have a cross tab query set up which iwould like to search for a criteria which is input by a user. i have a form set up which includes a command button and a text box. I have been trawling through the Help but cannot find a solution, other than i need to use a parameter query, how do i set one of these up?

Reply With Quote
  #2  
Old October 22nd, 2003, 04:26 AM
kabir_hussein kabir_hussein is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Derby,Uk
Posts: 7 kabir_hussein User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi

basically from what i know i would use a parameter query, unless i could see what you are trying to do i would recommned a parameter query which are very simple

kabir hussein

Reply With Quote
  #3  
Old October 22nd, 2003, 06:17 AM
ravislayer ravislayer is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 10 ravislayer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
im also very simple, little help?

Reply With Quote
  #4  
Old October 22nd, 2003, 02:32 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
1.
The simpliest way to set up a parameter query is in the criteia portion of the field of the query, enter the following

[Input User Parameter for "Field Name"]


When you run the query a input box will appear with the message: Input User Parameter for "FieldName" and the input box will wait of the user to enter a criteria.

OR
2.
The other way (if the text box has the search criteria in it) is to enter the following in the criteria portion of the query

[forms]![FormName]![text1]

I would also recommend (personnal preference) putting a "like" command at the beginning of the paramater "like [forms]![FormName]![text1]" because this allows you to seach with wild card characters for example

L*
brings back

Lake
Loud
London

london
brings back

london

S-

Reply With Quote
  #5  
Old October 23rd, 2003, 03:27 AM
ravislayer ravislayer is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 10 ravislayer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

thanx very much, out of at least 8 forums you are the only person to make sense

Reply With Quote
  #6  
Old October 29th, 2003, 03:46 AM
ravislayer ravislayer is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 10 ravislayer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by sbaxter
I would also recommend (personnal preference) putting a "like" command at the beginning of the paramater "like [forms]![FormName]![text1]" because this allows you to seach with wild card characters for example

L*
brings back

Lake
Loud
London

london
brings back

london

S- [/B]


i am having problems setting up this "like" command. I have done exactly as you said but with applying it to my database so it reads "like [forms]![frm_AudioVisual_Search]![text9]" Any ideas as to where i am goin wrong?

Reply With Quote
  #7  
Old October 29th, 2003, 03:48 AM
ravislayer ravislayer is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 10 ravislayer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
never mind im an idiot. I thought the speech marks were required characters, d'oh

Reply With Quote
  #8  
Old October 29th, 2003, 09:48 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
ravislayer

I noticed in the example you sent back to me you didn't rename you text field to something more meaningful

like [forms]![frm_AudioVisual_Search]![text9]

I would really recommend not using the default [text9] becuase it makes hard to trouble shoot later when something goes wrong. Also when you rename it put a "txt" in front of it to distungish it as a textbox

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > searching


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway