G
Guest
I am using a .mdb database directly saved in my Frontpage web. Maybe it
would be best if I describe what I'm trying to accomplish. The page would
have the alphabet across the top. When a user clicked on the letter the
query would run based on the letter clicked. Instead of using 26 different
queries I want to only use one that covers all 26 letters. The fields are
only Label, Name, and Picture in tabel Label. I can either draw from the
query in the database or FrontPage allows me to enter the query directly into
FrontPage. I do understand that the % character replaces the * when using
FrontPage. I'm just not sure how to create the query that will achieve the
result I'm looking for. I don't have much SQL knowledge and I have close to
ZERO VB knowledge.
In the FrontPage discussion group I asked a question about a query and I
received the following response:
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
%>
I started to attempt to do this query and here is as far as I got
SELECT Labels.Label, Labels.Name, Labels.Picture
FROM Labels
WHERE ((Labels.Name) Like
would be best if I describe what I'm trying to accomplish. The page would
have the alphabet across the top. When a user clicked on the letter the
query would run based on the letter clicked. Instead of using 26 different
queries I want to only use one that covers all 26 letters. The fields are
only Label, Name, and Picture in tabel Label. I can either draw from the
query in the database or FrontPage allows me to enter the query directly into
FrontPage. I do understand that the % character replaces the * when using
FrontPage. I'm just not sure how to create the query that will achieve the
result I'm looking for. I don't have much SQL knowledge and I have close to
ZERO VB knowledge.
In the FrontPage discussion group I asked a question about a query and I
received the following response:
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
%>
I started to attempt to do this query and here is as far as I got
SELECT Labels.Label, Labels.Name, Labels.Picture
FROM Labels
WHERE ((Labels.Name) Like