PC Review


Reply
Thread Tools Rate Thread

Creating One Query to use in FrontPage Instead of 26

 
 
=?Utf-8?B?U2FtIEIu?=
Guest
Posts: n/a
 
      24th Dec 2004
Hello,

I am attempting to develope a page that list the alphabet across the top.
My Access database has three simple fields. I would like to have the ability
for the user to click on a letter of the alphabet and a query would run and
bring up the information based on that letter. I know have to make a query
for each letter, but would rather not have 26 different pages. I don't have
much SQL or VB knowledge. Can someone please help.

Sam
 
Reply With Quote
 
 
 
 
Jon Spivey
Guest
Posts: n/a
 
      24th Dec 2004
Hi Sam,

Assuming you want to query on first letter, ie starts with a starts with b
etc you could make your links like this
<a href="Results.asp?letter=a">Starts with A</a>
<a href="Results.asp?letter=b">Starts with B</a>
and so on.

Then on your results page if you're using the FP wizard you can enter this
query,
select * from table where fieldname like '::letter::%'
if you're coding this you can do
<%
sql="select * from table where fieldname like '" &
request.querystring("letter") & "%'"
' execute your query
%>

--
Cheers,
Jon
Microsoft MVP

"Sam B." <(E-Mail Removed)> wrote in message
news:0761A2E4-8A38-47FB-A1EF-(E-Mail Removed)...
> Hello,
>
> I am attempting to develope a page that list the alphabet across the top.
> My Access database has three simple fields. I would like to have the
> ability
> for the user to click on a letter of the alphabet and a query would run
> and
> bring up the information based on that letter. I know have to make a
> query
> for each letter, but would rather not have 26 different pages. I don't
> have
> much SQL or VB knowledge. Can someone please help.
>
> Sam



 
Reply With Quote
 
=?Utf-8?B?U2FtIEIu?=
Guest
Posts: n/a
 
      24th Dec 2004
Thank you for the response. The first part of your response should be placed
in the "code" section of FrontPage, correct?

"Jon Spivey" wrote:

> Hi Sam,
>
> Assuming you want to query on first letter, ie starts with a starts with b
> etc you could make your links like this
> <a href="Results.asp?letter=a">Starts with A</a>
> <a href="Results.asp?letter=b">Starts with B</a>
> and so on.
>
> Then on your results page if you're using the FP wizard you can enter this
> query,
> select * from table where fieldname like '::letter::%'
> if you're coding this you can do
> <%
> sql="select * from table where fieldname like '" &
> request.querystring("letter") & "%'"
> ' execute your query
> %>
>
> --
> Cheers,
> Jon
> Microsoft MVP
>
> "Sam B." <(E-Mail Removed)> wrote in message
> news:0761A2E4-8A38-47FB-A1EF-(E-Mail Removed)...
> > Hello,
> >
> > I am attempting to develope a page that list the alphabet across the top.
> > My Access database has three simple fields. I would like to have the
> > ability
> > for the user to click on a letter of the alphabet and a query would run
> > and
> > bring up the information based on that letter. I know have to make a
> > query
> > for each letter, but would rather not have 26 different pages. I don't
> > have
> > much SQL or VB knowledge. Can someone please help.
> >
> > Sam

>
>
>

 
Reply With Quote
 
=?Utf-8?B?U2FtIEIu?=
Guest
Posts: n/a
 
      24th Dec 2004
Hi,

Here is the query that I would be using based on your suggestion. I didn't
follow the last part of your query response:

SELECT Labels.Label, Labels.Name, Labels.Picture
FROM Labels
WHERE ((Labels.Name) Like

Thank you for all your help

"Sam B." wrote:

> Thank you for the response. The first part of your response should be placed
> in the "code" section of FrontPage, correct?
>
> "Jon Spivey" wrote:
>
> > Hi Sam,
> >
> > Assuming you want to query on first letter, ie starts with a starts with b
> > etc you could make your links like this
> > <a href="Results.asp?letter=a">Starts with A</a>
> > <a href="Results.asp?letter=b">Starts with B</a>
> > and so on.
> >
> > Then on your results page if you're using the FP wizard you can enter this
> > query,
> > select * from table where fieldname like '::letter::%'
> > if you're coding this you can do
> > <%
> > sql="select * from table where fieldname like '" &
> > request.querystring("letter") & "%'"
> > ' execute your query
> > %>
> >
> > --
> > Cheers,
> > Jon
> > Microsoft MVP
> >
> > "Sam B." <(E-Mail Removed)> wrote in message
> > news:0761A2E4-8A38-47FB-A1EF-(E-Mail Removed)...
> > > Hello,
> > >
> > > I am attempting to develope a page that list the alphabet across the top.
> > > My Access database has three simple fields. I would like to have the
> > > ability
> > > for the user to click on a letter of the alphabet and a query would run
> > > and
> > > bring up the information based on that letter. I know have to make a
> > > query
> > > for each letter, but would rather not have 26 different pages. I don't
> > > have
> > > much SQL or VB knowledge. Can someone please help.
> > >
> > > Sam

> >
> >
> >

 
Reply With Quote
 
John Kisha
Guest
Posts: n/a
 
      24th Dec 2004
If you are hand-coding, than you would use the second example given <%
...... %> and place it in the "code" section.

If you are using the FrontPage wizard to create your results page, you
would use his first example.

Either way returns the same result. Pick and use only one.

John Kisha
Inland Pacific Consulting
http://www.VisitUsAt.com
323-463-8300

-----Original Message-----
From: Sam B. [private.php?do=newpm&u=]
Posted At: Friday, December 24, 2004 11:59 AM
Posted To: microsoft.public.frontpage.client
Conversation: Creating One Query to use in FrontPage Instead of 26
Subject: Re: Creating One Query to use in FrontPage Instead of 26

Hi,

Here is the query that I would be using based on your suggestion. I
didn't
follow the last part of your query response:

SELECT Labels.Label, Labels.Name, Labels.Picture
FROM Labels
WHERE ((Labels.Name) Like

Thank you for all your help

"Sam B." wrote:

> Thank you for the response. The first part of your response should be

placed
> in the "code" section of FrontPage, correct?
>
> "Jon Spivey" wrote:
>
> > Hi Sam,
> >
> > Assuming you want to query on first letter, ie starts with a starts

with b
> > etc you could make your links like this
> > <a href="Results.asp?letter=a">Starts with A</a>
> > <a href="Results.asp?letter=b">Starts with B</a>
> > and so on.
> >
> > Then on your results page if you're using the FP wizard you can

enter this
> > query,
> > select * from table where fieldname like '::letter::%'
> > if you're coding this you can do
> > <%
> > sql="select * from table where fieldname like '" &
> > request.querystring("letter") & "%'"
> > ' execute your query
> > %>
> >
> > --
> > Cheers,
> > Jon
> > Microsoft MVP
> >
> > "Sam B." <(E-Mail Removed)> wrote in message
> > news:0761A2E4-8A38-47FB-A1EF-(E-Mail Removed)...
> > > Hello,
> > >
> > > I am attempting to develope a page that list the alphabet across

the top.
> > > My Access database has three simple fields. I would like to have

the
> > > ability
> > > for the user to click on a letter of the alphabet and a query

would run
> > > and
> > > bring up the information based on that letter. I know have to

make a
> > > query
> > > for each letter, but would rather not have 26 different pages. I

don't
> > > have
> > > much SQL or VB knowledge. Can someone please help.
> > >
> > > Sam

> >
> >
> >


 
Reply With Quote
 
=?Utf-8?B?U2FtIEIu?=
Guest
Posts: n/a
 
      24th Dec 2004
I don't have a lot of knowledge in SQL so I'm hoping someone can help me
finish the statement I listed below.

"John Kisha" wrote:

> If you are hand-coding, than you would use the second example given <%
> ...... %> and place it in the "code" section.
>
> If you are using the FrontPage wizard to create your results page, you
> would use his first example.
>
> Either way returns the same result. Pick and use only one.
>
> John Kisha
> Inland Pacific Consulting
> http://www.VisitUsAt.com
> 323-463-8300
>
> -----Original Message-----
> From: Sam B. [private.php?do=newpm&u=]
> Posted At: Friday, December 24, 2004 11:59 AM
> Posted To: microsoft.public.frontpage.client
> Conversation: Creating One Query to use in FrontPage Instead of 26
> Subject: Re: Creating One Query to use in FrontPage Instead of 26
>
> Hi,
>
> Here is the query that I would be using based on your suggestion. I
> didn't
> follow the last part of your query response:
>
> SELECT Labels.Label, Labels.Name, Labels.Picture
> FROM Labels
> WHERE ((Labels.Name) Like
>
> Thank you for all your help
>
> "Sam B." wrote:
>
> > Thank you for the response. The first part of your response should be

> placed
> > in the "code" section of FrontPage, correct?
> >
> > "Jon Spivey" wrote:
> >
> > > Hi Sam,
> > >
> > > Assuming you want to query on first letter, ie starts with a starts

> with b
> > > etc you could make your links like this
> > > <a href="Results.asp?letter=a">Starts with A</a>
> > > <a href="Results.asp?letter=b">Starts with B</a>
> > > and so on.
> > >
> > > Then on your results page if you're using the FP wizard you can

> enter this
> > > query,
> > > select * from table where fieldname like '::letter::%'
> > > if you're coding this you can do
> > > <%
> > > sql="select * from table where fieldname like '" &
> > > request.querystring("letter") & "%'"
> > > ' execute your query
> > > %>
> > >
> > > --
> > > Cheers,
> > > Jon
> > > Microsoft MVP
> > >
> > > "Sam B." <(E-Mail Removed)> wrote in message
> > > news:0761A2E4-8A38-47FB-A1EF-(E-Mail Removed)...
> > > > Hello,
> > > >
> > > > I am attempting to develope a page that list the alphabet across

> the top.
> > > > My Access database has three simple fields. I would like to have

> the
> > > > ability
> > > > for the user to click on a letter of the alphabet and a query

> would run
> > > > and
> > > > bring up the information based on that letter. I know have to

> make a
> > > > query
> > > > for each letter, but would rather not have 26 different pages. I

> don't
> > > > have
> > > > much SQL or VB knowledge. Can someone please help.
> > > >
> > > > Sam
> > >
> > >
> > >

>

 
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
Creating a CD containing a Frontpage website. =?Utf-8?B?TWF1c2ll?= Microsoft Frontpage 11 5th Dec 2005 06:43 PM
Frontpage: creating graphics johnku Microsoft Frontpage 3 15th Dec 2004 11:05 AM
Creating a new web in FrontPage... =?Utf-8?B?VHJvcGlj?= Microsoft Frontpage 1 30th Jun 2004 10:19 AM
Creating Reports In Frontpage =?Utf-8?B?QXR0aWxh?= Microsoft Frontpage 2 30th Apr 2004 09:52 PM
creating portals in frontpage Mark Ray Microsoft Frontpage 4 9th Sep 2003 12:25 PM


Features
 

Advertising
 

Newsgroups
 


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