ACC97: HTML: Search for Hyperlink Fails with Specified Criteria (164773)
The information in this article applies to:
This article was previously published under Q164773 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you type a hyperlink address on the Criteria line in a query to
return all records associated with that hyperlink, no records are returned,
even though records that meet the specified criteria do exist in the table.
CAUSE
Microsoft Access Hyperlink fields consist of the following three sections
separated by number signs (#): the Displaytext, the Address, and the
Subaddress. When you view these fields in a datasheet, a form, or a report,
Microsoft Access just displays the Displaytext portion of the fields.
Therefore, to return records where the Displaytext or Address is a string,
you must put an asterisk (*) on either side of the string.
RESOLUTION
When you search for a hyperlink address, you must include the asterisk
character (*) in your search argument. For example, to retrieve all
records that contain www.microsoft.com, type:
Like "*www.microsoft.com*" REFERENCES
For more information about Hyperlink fields, search the Help Index for
"hyperlink fields and controls," or ask the Microsoft Access 97 Office
Assistant.
| Modification Type: | Major | Last Reviewed: | 9/27/2003 |
|---|
| Keywords: | kbprb kbusage KB164773 |
|---|
|