PC Review


Reply
Thread Tools Rate Thread

Access Database info into Page

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

I am attempting to add a database to one of my pages. I created a very
simple database which displays Label Name and Label Picture. I choose to
insert the pictures using the insert/OLE Object function in access. I
browsed my desktop and inserted the image. I uploaded the page to my site
and the two test names appeared, but the pictures did not. Instead of
pictures the following was dispalyed [#BINARY#]. I then tried to move the
pictures into my images folder and still had the same issues. What is the
best way to fix this problem?

Thank you,
Sam
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIEJ1eWVucw==?=
Guest
Posts: n/a
 
      22nd Dec 2004
Don't put the pictures in the database. Upload the pictures as files, and put
the *file names* in the database.

To make the Database Results Wizard display the pictures, set up a custom
query that begins like this:

SELECT '<img src="'images/&[picfilename]&'">' as pictag, ...

and report the pictag field. Then, when the DRW conmpletes, right-click
<<pictag>>, choose Database Column Value Properties, and select Column Value
Contains HTML.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------


"Sam B." wrote:

> Hello,
>
> I am attempting to add a database to one of my pages. I created a very
> simple database which displays Label Name and Label Picture. I choose to
> insert the pictures using the insert/OLE Object function in access. I
> browsed my desktop and inserted the image. I uploaded the page to my site
> and the two test names appeared, but the pictures did not. Instead of
> pictures the following was dispalyed [#BINARY#]. I then tried to move the
> pictures into my images folder and still had the same issues. What is the
> best way to fix this problem?
>
> Thank you,
> Sam

 
Reply With Quote
 
=?Utf-8?B?U2FtIEIu?=
Guest
Posts: n/a
 
      22nd Dec 2004
OK,

That worked great! Now I have another questions. I ultimately want to have
a page that list the alphabet across the top. Each letter would be a
hyperlink that would lead to a list of llabel names associated with pictures.
I obviously don't want to make 26 different queries to cover the alphabet.
Is there a way to make one query that will cover the entire alphabet on one
page? If you have further questions let me know.

Thank you,
Sam

"Jim Buyens" wrote:

> Don't put the pictures in the database. Upload the pictures as files, and put
> the *file names* in the database.
>
> To make the Database Results Wizard display the pictures, set up a custom
> query that begins like this:
>
> SELECT '<img src="'images/&[picfilename]&'">' as pictag, ...
>
> and report the pictag field. Then, when the DRW conmpletes, right-click
> <<pictag>>, choose Database Column Value Properties, and select Column Value
> Contains HTML.
>
> Jim Buyens
> Microsoft FrontPage MVP
> http://www.interlacken.com
> Author of:
> *----------------------------------------------------
> |\---------------------------------------------------
> || Microsoft Windows SharePoint Services Inside Out
> || Microsoft Office FrontPage 2003 Inside Out
> ||---------------------------------------------------
> || Web Database Development Step by Step .NET Edition
> || Microsoft FrontPage Version 2002 Inside Out
> || Faster Smarter Beginning Programming
> || (All from Microsoft Press)
> |/---------------------------------------------------
> *----------------------------------------------------
>
>
> "Sam B." wrote:
>
> > Hello,
> >
> > I am attempting to add a database to one of my pages. I created a very
> > simple database which displays Label Name and Label Picture. I choose to
> > insert the pictures using the insert/OLE Object function in access. I
> > browsed my desktop and inserted the image. I uploaded the page to my site
> > and the two test names appeared, but the pictures did not. Instead of
> > pictures the following was dispalyed [#BINARY#]. I then tried to move the
> > pictures into my images folder and still had the same issues. What is the
> > best way to fix this problem?
> >
> > Thank you,
> > Sam

 
Reply With Quote
 
=?Utf-8?B?SmltIEJ1eWVucw==?=
Guest
Posts: n/a
 
      22nd Dec 2004
Link each picture to a URL like ?pfx=A. For example:

<a href="?pfx=A">A</a>

Then, add a clause like this to your custom SQL statement:

WHERE Iif(':fx::'='',Left([LabelName],1)='A',Left([LabelName],1)=':fx::'))

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------


"Sam B." wrote:

> OK,
>
> That worked great! Now I have another questions. I ultimately want to have
> a page that list the alphabet across the top. Each letter would be a
> hyperlink that would lead to a list of llabel names associated with pictures.
> I obviously don't want to make 26 different queries to cover the alphabet.
> Is there a way to make one query that will cover the entire alphabet on one
> page? If you have further questions let me know.
>
> Thank you,
> Sam
>
> "Jim Buyens" wrote:
>
> > Don't put the pictures in the database. Upload the pictures as files, and put
> > the *file names* in the database.
> >
> > To make the Database Results Wizard display the pictures, set up a custom
> > query that begins like this:
> >
> > SELECT '<img src="'images/&[picfilename]&'">' as pictag, ...
> >
> > and report the pictag field. Then, when the DRW conmpletes, right-click
> > <<pictag>>, choose Database Column Value Properties, and select Column Value
> > Contains HTML.
> >
> > Jim Buyens
> > Microsoft FrontPage MVP
> > http://www.interlacken.com
> > Author of:
> > *----------------------------------------------------
> > |\---------------------------------------------------
> > || Microsoft Windows SharePoint Services Inside Out
> > || Microsoft Office FrontPage 2003 Inside Out
> > ||---------------------------------------------------
> > || Web Database Development Step by Step .NET Edition
> > || Microsoft FrontPage Version 2002 Inside Out
> > || Faster Smarter Beginning Programming
> > || (All from Microsoft Press)
> > |/---------------------------------------------------
> > *----------------------------------------------------
> >
> >
> > "Sam B." wrote:
> >
> > > Hello,
> > >
> > > I am attempting to add a database to one of my pages. I created a very
> > > simple database which displays Label Name and Label Picture. I choose to
> > > insert the pictures using the insert/OLE Object function in access. I
> > > browsed my desktop and inserted the image. I uploaded the page to my site
> > > and the two test names appeared, but the pictures did not. Instead of
> > > pictures the following was dispalyed [#BINARY#]. I then tried to move the
> > > pictures into my images folder and still had the same issues. What is the
> > > best way to fix this problem?
> > >
> > > Thank you,
> > > 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
Using a database to access info in Word James Microsoft Word Document Management 0 23rd Jan 2008 02:12 AM
info on every record in access database.. =?Utf-8?B?YmphbWVz?= Microsoft Access Getting Started 5 30th Aug 2006 07:18 AM
Getting info from text box to Access Database JT Microsoft ASP .NET 0 9th Feb 2005 12:53 AM
Help! Ms access web database info needed ThinkingWolfTree Microsoft Access Database Table Design 0 2nd Apr 2004 06:50 AM
Re: info written to database to display on confirmation page Kathleen Anderson [MVP - FP] Microsoft Frontpage 0 28th Jan 2004 09:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:18 PM.