P
Post Tenebras Lux
I have a query that draws data from a table that has been imported into
Access 2003 from an SEC file of summary company filings. The fields in that
imported table are:
CIK - and ID field alphanumeric stored as text, e.g. "1375195"
Company Name - stored as text
FileName - stored as text, e.g. "edgar/data/1375195/0001144204-07-060584.txt"
In my query, I'd like to add a field that inserts in front of the FileName
the base URL to the Filename so that it becames a clickable hyperlink, e.g.
FullFileName
"ftp://ftp.sec.gov/edgar/" & FileName
gives the result FullFileName
ftp://ftp.sec.gov/edgar/data/1375195/0001144204-07-060584.txt
How do I convert this last FullFileName
ftp://ftp.sec.gov/edgar/data/1375195/0001144204-07-060584.txt
into a hyperlink data type IN THE QUERY, or into a new table (not an
existing table), so that it is directly clickable.
Right now, it appears in the query result and in a maketable as a text
field. I do this query frequently, and DON"T want to change the table field
data type after each query is run (so please don't suggest this - I know how
to do that - and it works fine, but is labor intensive).
I've tried hyperlinkpart(FullFileName,0) but it only returns a text result,
not hyperlink. The query is run directly from the database container (as of
now), and, for now, I'd like to avoid using a form - as these queries will
ultimately be called from Excel.
I hope this request is understandable - I've tried searching for a
technique, but just can't find anything that directly applies - it seems that
either a form object is used, via VBA, or a table field is converted to
hyperlink. Noone seems to address making the conversion from text to
hyperlink directly in the query.
Thanks for any suggestions.
Access 2003 from an SEC file of summary company filings. The fields in that
imported table are:
CIK - and ID field alphanumeric stored as text, e.g. "1375195"
Company Name - stored as text
FileName - stored as text, e.g. "edgar/data/1375195/0001144204-07-060584.txt"
In my query, I'd like to add a field that inserts in front of the FileName
the base URL to the Filename so that it becames a clickable hyperlink, e.g.
FullFileName
"ftp://ftp.sec.gov/edgar/" & FileName
gives the result FullFileName
ftp://ftp.sec.gov/edgar/data/1375195/0001144204-07-060584.txt
How do I convert this last FullFileName
ftp://ftp.sec.gov/edgar/data/1375195/0001144204-07-060584.txt
into a hyperlink data type IN THE QUERY, or into a new table (not an
existing table), so that it is directly clickable.
Right now, it appears in the query result and in a maketable as a text
field. I do this query frequently, and DON"T want to change the table field
data type after each query is run (so please don't suggest this - I know how
to do that - and it works fine, but is labor intensive).
I've tried hyperlinkpart(FullFileName,0) but it only returns a text result,
not hyperlink. The query is run directly from the database container (as of
now), and, for now, I'd like to avoid using a form - as these queries will
ultimately be called from Excel.
I hope this request is understandable - I've tried searching for a
technique, but just can't find anything that directly applies - it seems that
either a form object is used, via VBA, or a table field is converted to
hyperlink. Noone seems to address making the conversion from text to
hyperlink directly in the query.
Thanks for any suggestions.