PC Review


Reply
Thread Tools Rate Thread

Custom Query to Suppliment the DRW for a Search Form

 
 
=?Utf-8?B?TWVsaXNzYQ==?=
Guest
Posts: n/a
 
      6th Jul 2004
I'm trying to build a few different search forms that query databases uploaded to my website. The data originates from an ODBC data source so I can export to many different formats. I'm currently using an access database connection. I'm working with FP03 and my Access database is 2000.
I want to query several different form fields and my needs are too complex for the DRW and for my level of programming. What I want is a statement that says (Return results for any field that has data in it but ignore those which are blank) Can anyone help? Please please please!
Here is a link to the page I started. The results are returning all records because the blank fields are being processed as data in the query.
http://new.caassistedliving.org/Sear...iderSearch.asp
Thanks for your time.


PS Jim if you happen across this message - Front Page Inside and Out is an incredible book!! It is my bible. I appreciate the useful info and sprinkles of humor that you provide.

 
Reply With Quote
 
 
 
 
Jon Spivey
Guest
Posts: n/a
 
      7th Jul 2004
Hi,
Can you define "blank" Usually blank means null in which case
SELECT *
FROM Table
WHERE Field IS NOT NULL

would give you the results you want
"Melissa" <(E-Mail Removed)> wrote in message
news:F15061BA-C4E6-4DD1-8B9E-(E-Mail Removed)...
> I'm trying to build a few different search forms that query databases

uploaded to my website. The data originates from an ODBC data source so I
can export to many different formats. I'm currently using an access database
connection. I'm working with FP03 and my Access database is 2000.
> I want to query several different form fields and my needs are too complex

for the DRW and for my level of programming. What I want is a statement that
says (Return results for any field that has data in it but ignore those
which are blank) Can anyone help? Please please please!
> Here is a link to the page I started. The results are returning all

records because the blank fields are being processed as data in the query.
> http://new.caassistedliving.org/Sear...iderSearch.asp
> Thanks for your time.
>
>
> PS Jim if you happen across this message - Front Page Inside and Out is an

incredible book!! It is my bible. I appreciate the useful info and sprinkles
of humor that you provide.
>



 
Reply With Quote
 
Jon Spivey
Guest
Posts: n/a
 
      7th Jul 2004
Hi,
Can you define "blank" Usually blank means null in which case
SELECT *
FROM Table
WHERE Field IS NOT NULL

would give you the results you want
"Melissa" <(E-Mail Removed)> wrote in message
news:F15061BA-C4E6-4DD1-8B9E-(E-Mail Removed)...
> I'm trying to build a few different search forms that query databases

uploaded to my website. The data originates from an ODBC data source so I
can export to many different formats. I'm currently using an access database
connection. I'm working with FP03 and my Access database is 2000.
> I want to query several different form fields and my needs are too complex

for the DRW and for my level of programming. What I want is a statement that
says (Return results for any field that has data in it but ignore those
which are blank) Can anyone help? Please please please!
> Here is a link to the page I started. The results are returning all

records because the blank fields are being processed as data in the query.
> http://new.caassistedliving.org/Sear...iderSearch.asp
> Thanks for your time.
>
>
> PS Jim if you happen across this message - Front Page Inside and Out is an

incredible book!! It is my bible. I appreciate the useful info and sprinkles
of humor that you provide.
>



 
Reply With Quote
 
=?Utf-8?B?TWVsaXNzYQ==?=
Guest
Posts: n/a
 
      7th Jul 2004
Thanks so very much Jon! I'm almost there!

I have two issues:

Can you please look at this and tell me if I have it right?

fp_sQry="SELECT * FROM ""PR MemberQuery - Imported"" WHERE (COMPANY LIKE '%::COMPANY::%' AND 'COMPANY' IS NOT NULL AND LAST_NAME LIKE '%::LAST_NAME::%' AND 'LAST NAME' IS NOT NULL AND CITY LIKE '%::CITY::%' AND 'CITY' IS NOT NULL AND ZIP LIKE '%::ZIP::%' AND 'ZIP' IS NOT NULL)"

I thought I should use "and" since I already have a "where" clause. Is this correct?

My second issue is that I generated the query with DRW, so when I edit the statement and attempt to save I get a message that a front page component was edited and cannot be saved. How do I stop this from happening?

Thanks a million.

"Jon Spivey" wrote:

> Hi,
> Can you define "blank" Usually blank means null in which case
> SELECT *
> FROM Table
> WHERE Field IS NOT NULL
>
> would give you the results you want
> "Melissa" <(E-Mail Removed)> wrote in message
> news:F15061BA-C4E6-4DD1-8B9E-(E-Mail Removed)...
> > I'm trying to build a few different search forms that query databases

> uploaded to my website. The data originates from an ODBC data source so I
> can export to many different formats. I'm currently using an access database
> connection. I'm working with FP03 and my Access database is 2000.
> > I want to query several different form fields and my needs are too complex

> for the DRW and for my level of programming. What I want is a statement that
> says (Return results for any field that has data in it but ignore those
> which are blank) Can anyone help? Please please please!
> > Here is a link to the page I started. The results are returning all

> records because the blank fields are being processed as data in the query.
> > http://new.caassistedliving.org/Sear...iderSearch.asp
> > Thanks for your time.
> >
> >
> > PS Jim if you happen across this message - Front Page Inside and Out is an

> incredible book!! It is my bible. I appreciate the useful info and sprinkles
> of humor that you provide.
> >

>
>
>

 
Reply With Quote
 
=?Utf-8?B?TWVsaXNzYQ==?=
Guest
Posts: n/a
 
      7th Jul 2004
Nevermind! I posted my last message to quickly. I added a custom query to the DRW and it works beautifully.

Thanks for your help, Jon!

"Jon Spivey" wrote:

> Hi,
> Can you define "blank" Usually blank means null in which case
> SELECT *
> FROM Table
> WHERE Field IS NOT NULL
>
> would give you the results you want
> "Melissa" <(E-Mail Removed)> wrote in message
> news:F15061BA-C4E6-4DD1-8B9E-(E-Mail Removed)...
> > I'm trying to build a few different search forms that query databases

> uploaded to my website. The data originates from an ODBC data source so I
> can export to many different formats. I'm currently using an access database
> connection. I'm working with FP03 and my Access database is 2000.
> > I want to query several different form fields and my needs are too complex

> for the DRW and for my level of programming. What I want is a statement that
> says (Return results for any field that has data in it but ignore those
> which are blank) Can anyone help? Please please please!
> > Here is a link to the page I started. The results are returning all

> records because the blank fields are being processed as data in the query.
> > http://new.caassistedliving.org/Sear...iderSearch.asp
> > Thanks for your time.
> >
> >
> > PS Jim if you happen across this message - Front Page Inside and Out is an

> incredible book!! It is my bible. I appreciate the useful info and sprinkles
> of humor that you provide.
> >

>
>
>

 
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
Help with custom search form - should I use rec Manuel Microsoft Access VBA Modules 1 27th Apr 2010 04:41 PM
Return results from a parameter query using a custom form back into the original form.... daddy.dobie@gmail.com Microsoft Access Queries 10 31st May 2007 06:37 AM
custom search form matthew nance Microsoft Access 3 22nd Aug 2004 04:56 PM
Search in exchange from custom form Garnet Microsoft Outlook Form Programming 1 30th Jan 2004 12:07 PM
Popup Custom Search Form, Can this be Done ? Dave Elliott Microsoft Access Forms 5 10th Aug 2003 03:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 AM.