• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2366
  • Last Modified:

MS ACCESS Web Form - command button to open document from record

I have a form that I've converted over to HTML, but now some of the commands don't work bcs its obviously in a differnt language (originally done in VBA through Access).

The code that I was using to open a document link from the record was using the followhyperlink method...code i was using here...Application.FollowHyperlink txtFilePath <where txtfilepath is in the record as tblRecord / Document Link column.

How would I do this in HTML?
1 Solution
I think if you just make that data a hyperlink ref on your web page you will not have to do anything ... the file should just open.

<a href="file://c:/book1.xls">book1</a>
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
No points for me:

When you convert to a Web Form (or Data Access Page, as I believe they're called) then basically Access simply creates a standard HTML form that displays your data ... so, as Steve points out, you can use any web-based language on that form/page.

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now