PC Review


Reply
Thread Tools Rate Thread

DB results search form issues

 
 
Martin Stabrey
Guest
Posts: n/a
 
      23rd Feb 2008
Hi all,

My problem two-fold:

First - two (of five) fields specified in my Search Form should be drop-down
lists (of pre-defined choices - as used in the Access DB). The default
creates a text box only. How can I get a drop-down list to be used, possibly
directly from the DB in the Search Form?

Second - as mentioned, the above search form has 5 fields, 3 three are
simple text fields, 2 are drop-down lists. I'd like the returned results to
reflect a match from any 1 of the 5 choices - it doesn't matter which. I've
managed to succeed with the 3 text fields by using "contains" in the search
criteria, but how would I manage this with the drop-down lists. I would
ideally like the first option of the drop-down lists to be a blank wildcard
(or something equivalent), so that unless it is actually selected, it won't
affect what's been chosen in the text fields. Possible?

TIA

Mart

 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      23rd Feb 2008
1) See http://www.asp101.com/samples/db_pulldown_linked.asp for the drop downs

2) Use an OR between your criteria for each search field
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"Martin Stabrey" <(E-Mail Removed)> wrote in message news:1B5A7D3D-034B-47B4-8EE0-(E-Mail Removed)...
| Hi all,
|
| My problem two-fold:
|
| First - two (of five) fields specified in my Search Form should be drop-down
| lists (of pre-defined choices - as used in the Access DB). The default
| creates a text box only. How can I get a drop-down list to be used, possibly
| directly from the DB in the Search Form?
|
| Second - as mentioned, the above search form has 5 fields, 3 three are
| simple text fields, 2 are drop-down lists. I'd like the returned results to
| reflect a match from any 1 of the 5 choices - it doesn't matter which. I've
| managed to succeed with the 3 text fields by using "contains" in the search
| criteria, but how would I manage this with the drop-down lists. I would
| ideally like the first option of the drop-down lists to be a blank wildcard
| (or something equivalent), so that unless it is actually selected, it won't
| affect what's been chosen in the text fields. Possible?
|
| TIA
|
| Mart
|


 
Reply With Quote
 
Martin Stabrey
Guest
Posts: n/a
 
      23rd Feb 2008
Thanks Stefan. I get 2, but don't see how 1 helps me.

Mart
"Stefan B Rusynko" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 1) See http://www.asp101.com/samples/db_pulldown_linked.asp for the drop
> downs
>
> 2) Use an OR between your criteria for each search field
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "Martin Stabrey" <(E-Mail Removed)> wrote in message
> news:1B5A7D3D-034B-47B4-8EE0-(E-Mail Removed)...
> | Hi all,
> |
> | My problem two-fold:
> |
> | First - two (of five) fields specified in my Search Form should be
> drop-down
> | lists (of pre-defined choices - as used in the Access DB). The default
> | creates a text box only. How can I get a drop-down list to be used,
> possibly
> | directly from the DB in the Search Form?
> |
> | Second - as mentioned, the above search form has 5 fields, 3 three are
> | simple text fields, 2 are drop-down lists. I'd like the returned results
> to
> | reflect a match from any 1 of the 5 choices - it doesn't matter which.
> I've
> | managed to succeed with the 3 text fields by using "contains" in the
> search
> | criteria, but how would I manage this with the drop-down lists. I would
> | ideally like the first option of the drop-down lists to be a blank
> wildcard
> | (or something equivalent), so that unless it is actually selected, it
> won't
> | affect what's been chosen in the text fields. Possible?
> |
> | TIA
> |
> | Mart
> |
>
>


 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      24th Feb 2008
1 shows you how to create dropdowns (and linked dropdowns from a database)

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


"Martin Stabrey" <(E-Mail Removed)> wrote in message news:1953AC5F-BC63-4FFA-9E9C-(E-Mail Removed)...
| Thanks Stefan. I get 2, but don't see how 1 helps me.
|
| Mart
| "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
| news:(E-Mail Removed)...
| > 1) See http://www.asp101.com/samples/db_pulldown_linked.asp for the drop
| > downs
| >
| > 2) Use an OR between your criteria for each search field
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > _____________________________________________
| >
| >
| > "Martin Stabrey" <(E-Mail Removed)> wrote in message
| > news:1B5A7D3D-034B-47B4-8EE0-(E-Mail Removed)...
| > | Hi all,
| > |
| > | My problem two-fold:
| > |
| > | First - two (of five) fields specified in my Search Form should be
| > drop-down
| > | lists (of pre-defined choices - as used in the Access DB). The default
| > | creates a text box only. How can I get a drop-down list to be used,
| > possibly
| > | directly from the DB in the Search Form?
| > |
| > | Second - as mentioned, the above search form has 5 fields, 3 three are
| > | simple text fields, 2 are drop-down lists. I'd like the returned results
| > to
| > | reflect a match from any 1 of the 5 choices - it doesn't matter which.
| > I've
| > | managed to succeed with the 3 text fields by using "contains" in the
| > search
| > | criteria, but how would I manage this with the drop-down lists. I would
| > | ideally like the first option of the drop-down lists to be a blank
| > wildcard
| > | (or something equivalent), so that unless it is actually selected, it
| > won't
| > | affect what's been chosen in the text fields. Possible?
| > |
| > | TIA
| > |
| > | Mart
| > |
| >
| >
|


 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search form - results excluding search request Annette Microsoft Access Form Coding 0 2nd Oct 2008 05:36 PM
search area on a form that opens another form with search results =?Utf-8?B?V2lsbCBH?= Microsoft Access Forms 10 22nd Mar 2007 03:49 PM
Search Form Results, send results to new page =?Utf-8?B?Q2FwdGFpbiBDYXJs?= Microsoft Frontpage 2 1st Aug 2005 07:13 PM
search form properties/ search results tab =?Utf-8?B?M3hhbGFkeQ==?= Microsoft Frontpage 1 8th May 2005 04:07 AM
ASP Database Results and Search Form page displays results upon initial entry =?Utf-8?B?RGF0YWd1cnU=?= Microsoft Frontpage 3 27th Mar 2004 06:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:00 AM.