-----Original Message-----
-----Original Message-----
We are displaying the results of an Access DB from FP
2003. We have two questions:
1. The data type of one field is set to hyperlink. In our
results, how do we display a chosen bitmap (something
like "Go here to see this") instead of just a dull long
text hyperlink?
You have to create a custom query, and make the SELECT
statement generate an <img> tag. Here's roughly howthis
would look:
SELECT '<a href="' & [fieldwithurl] & '"><img
src="images/gohere.gif"></a>' as mylink, ...
Then, in the finished database results region, right- click
the mylink column, choose Database Column Value
Properties, and select Column Value Contains HTML.
BTW, if you can, make the field containing the hyperlink
an ordinary text field.
2. Each result item has a bitmap picture of the product
associated with it. How do we get these pics. to display
in our results. In our DB we have specified the data type
of this bitmap field to OLE - is this correct?
Well, it's regrettable, that's for sure.
It's *much* easier if you just store image file names in
the database. Then, you just make a custom query generate
<img> tag, as shown in the answer to your first question.
If other applications require the pictures to actually be
in the database as OLE objects, you'll need to write an
ActiveX control that retrieves the bitmap, and then an ASP
page that calls the ActiveX control and sends the bitmap
to the browser, and then a database query that calls that
ASP page.
For more info, browse MSKB article 175261:
HOWTO: Retrieve Bitmap from Access and Display It in Web
Page
http://support.microsoft.com/default.aspx?scid=kb;en-
us;175261
Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| 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)
|/---------------------------------------------------
*----------------------------------------------------
.