PC Review


Reply
Thread Tools Rate Thread

Can't search some DB columns

 
 
Nichcolas
Guest
Posts: n/a
 
      1st Oct 2004
I used FP 2000 to create an Access DB, a connection, and
DRW results. Then I created a different db by importing
data from Excel, gave it the same column names and saved
it over the .mdb created by FP.

This is a very simple Name, Address, City, State, Zip,
Telephone database with two tables for two cities. All of
the columns are Access text fields (except for the ID of
course).

The only DRW search forms that returns results are City
and Zip. And even these only return results if you enter
an exact term, even though I specified LIKE. I've tried it
every which way. Searching the name, address, state or
phone fields will only get "No Records Returned".

Has anybody seen this and can help?!


 
Reply With Quote
 
 
 
 
Nicholas
Guest
Posts: n/a
 
      2nd Oct 2004
Sort of found my own answer. The problem is in the Access
DB and not anything in Front Page.

Have to use ='*' & userinput & '*' in the SQL statement
instead of LIKE userinput

But I have other databases (created by FP) where LIKE
userinput works fine. Why the difference? Guess I'll ask
in an Access forum.

>-----Original Message-----
>I used FP 2000 to create an Access DB, a connection, and
>DRW results. Then I created a different db by importing
>data from Excel, gave it the same column names and saved
>it over the .mdb created by FP.
>
>This is a very simple Name, Address, City, State, Zip,
>Telephone database with two tables for two cities. All of
>the columns are Access text fields (except for the ID of
>course).
>
>The only DRW search forms that returns results are City
>and Zip. And even these only return results if you enter
>an exact term, even though I specified LIKE. I've tried

it
>every which way. Searching the name, address, state or
>phone fields will only get "No Records Returned".
>
>Has anybody seen this and can help?!
>
>
>.
>

 
Reply With Quote
 
Kathleen Anderson [MVP - FrontPage]
Guest
Posts: n/a
 
      2nd Oct 2004
Hi Nicholas:
You may want to take a look at
Description of the SQL syntax that is generated by the FrontPage Database
Results Wizard
http://support.microsoft.com/default.aspx?scid=kb;[LN];306430

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/


Nicholas <(E-Mail Removed)> wrote:
> Sort of found my own answer. The problem is in the Access
> DB and not anything in Front Page.
>
> Have to use ='*' & userinput & '*' in the SQL statement
> instead of LIKE userinput
>
> But I have other databases (created by FP) where LIKE
> userinput works fine. Why the difference? Guess I'll ask
> in an Access forum.
>
>> -----Original Message-----
>> I used FP 2000 to create an Access DB, a connection, and
>> DRW results. Then I created a different db by importing
>> data from Excel, gave it the same column names and saved
>> it over the .mdb created by FP.
>>
>> This is a very simple Name, Address, City, State, Zip,
>> Telephone database with two tables for two cities. All of
>> the columns are Access text fields (except for the ID of
>> course).
>>
>> The only DRW search forms that returns results are City
>> and Zip. And even these only return results if you enter
>> an exact term, even though I specified LIKE. I've tried it
>> every which way. Searching the name, address, state or
>> phone fields will only get "No Records Returned".
>>
>> Has anybody seen this and can help?!
>>
>>
>> .


 
Reply With Quote
 
Nicholas
Guest
Posts: n/a
 
      2nd Oct 2004
Thanks. The lack of % symbols around the text input might
be the problem. It's just treating LIKE the same as = even
in the queries written in Access.


>-----Original Message-----
>Hi Nicholas:
>You may want to take a look at
>Description of the SQL syntax that is generated by the

FrontPage Database
>Results Wizard
>http://support.microsoft.com/default.aspx?scid=kb;

[LN];306430
>
>--
>~ Kathleen Anderson
>Microsoft MVP - FrontPage
>Spider Web Woman Designs
>http://www.spiderwebwoman.com/resources/
>
>
>Nicholas <(E-Mail Removed)> wrote:
>> Sort of found my own answer. The problem is in the

Access
>> DB and not anything in Front Page.
>>
>> Have to use ='*' & userinput & '*' in the SQL statement
>> instead of LIKE userinput
>>
>> But I have other databases (created by FP) where LIKE
>> userinput works fine. Why the difference? Guess I'll ask
>> in an Access forum.
>>
>>> -----Original Message-----
>>> I used FP 2000 to create an Access DB, a connection,

and
>>> DRW results. Then I created a different db by importing
>>> data from Excel, gave it the same column names and

saved
>>> it over the .mdb created by FP.
>>>
>>> This is a very simple Name, Address, City, State, Zip,
>>> Telephone database with two tables for two cities. All

of
>>> the columns are Access text fields (except for the ID

of
>>> course).
>>>
>>> The only DRW search forms that returns results are City
>>> and Zip. And even these only return results if you

enter
>>> an exact term, even though I specified LIKE. I've

tried it
>>> every which way. Searching the name, address, state or
>>> phone fields will only get "No Records Returned".
>>>
>>> Has anybody seen this and can help?!
>>>
>>>
>>> .

>
>.
>

 
Reply With Quote
 
 
 
Reply

« DHTML | pop ups? »
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
is there a vba way to search for ### in columns before printing =?Utf-8?B?TWlrZSBNb2x5bmVhdXg=?= Microsoft Excel Programming 2 7th Sep 2007 04:58 PM
Search Across Multiple Columns =?Utf-8?B?RWZyYWlu?= Microsoft Excel Misc 1 8th Feb 2007 05:24 PM
search 2 Columns Please =?Utf-8?B?U3RldmVk?= Microsoft Excel Programming 14 14th Feb 2006 06:01 PM
Code to search all columns in a table for a single search word =?Utf-8?B?amZhcnJlbGw=?= Microsoft Access Form Coding 4 4th Jun 2005 12:15 AM
search columns, set variable value =?Utf-8?B?Um9iZXJ0?= Microsoft Excel Programming 2 23rd Mar 2005 06:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:28 AM.