Lcase

kitty77

Registered User.
Local time
, 22:11
Joined
May 27, 2019
Messages
719
I have a query with a hyperlink field. I want to force lower case but when I do, it removes the hyperlink? What am I doing wrong?

History Link: LCase([Mlink3])
 
you didnt.
Lcase should not erase the data in the field: MLINK3
 
It did not erase the data, it makes it just text and not a hyperlink.
 
Maybe you can accept the results as-is (but make sure it's on the Query side), then use the properties in a Form or Report to make it a hyperlink again.

The reason why this happens is because, as Microsoft documentation says, LCASE() function returns a string
Functions always officially return something. Have to pay attention to what that something is.

This is another one in the dozens of scenarios that prove you should not use creative datatypes (like Hyperlink) in a database - including in quasi-databases, like MS Access. Store it as plain text and worry about the fancy stuff when working with the presentation layer - forms, reports, etc.
Query your text field as LCASE, then fancify it later.

Don't use formatting concepts at the table level - ever!
 

Users who are viewing this thread

Back
Top Bottom