-
Running filter finds HTML within a field
I created a blank Access database and used ASPdb to insert HTML links into a field. My problem is that when a filter is run on the field (style=simple)the filter returns results based on the HTML code as well as the text that appears in the grid.
Example:
I have updated a field in one of the records with the following HTML:
<A href=http://m16039/busmktsupp/_database/tariff_integration/Job%20Aid%20Sheets/Local%20Exchange%20Services/Business%20And%20Residence%20Service.doc>Bus & Res Service Classification</a>
so that the 'Bus & Res Service Classification' link will appear in the field when a user pulls the record.
If a user were to type in 'data' in the filter field, they would pull all records that had the 'http://m16039/busmktsupp/_database' path in the URL.
Is there any way to run the filter only on the text that appears to the user in grid mode?
-
Running filter finds HTML within a field (reply)
No, I don't think you can.
However, there may be a solution! Change your fields to NOT have all the HTML in them, only the "pure data". Then, use dbMagicCell to "wrap" all the HTML around that pure data. This is exactly what we do in the car database. The field for the photo contains "bmwz3.jpg", but the dbMagicCell looks something like:
X.dbMagicCell = "photo,,<A HREF=""cardb/images/#photo#"">#carname#</A>"
This creates this kind of html:
<A HREF="cardb/images/bmwz3.jpg">BMW Z3</A>
Which of course gives you an underlined hyperlink "BMW Z3" which points to the image.
Hope this helps!
John
On 3/3/99 4:49:27 PM, Ralph Asbury wrote:
> I created a blank Access database and used ASPdb to insert HTML links into
> a field. My problem is that when a filter is run on the field
> (style=simple)the filter returns results based on the HTML code as well as
> the text that appears in the grid.
Example:
I have updated a field in
> one of the records with the following HTML:
<A
> href=http://m16039/busmktsupp/_database/tariff_integration/Job%20Aid%20Sheet
> s/Local%20Exchange%20Services/Business%20And%20Residence%20Service.doc>Bus
> & Res Service Classification</a>
so that the 'Bus & Res Service
> Classification' link will appear in the field when a user pulls the
> record.
If a user were to type in 'data' in the filter field,
> they would pull all records that had the
> 'http://m16039/busmktsupp/_database' path in the URL.
Is there
> any way to run the filter only on the text that appears to the user in grid mode?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|