Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open form in Access with web page...

Status
Not open for further replies.

JHDavis

Programmer
Aug 17, 2002
19
US
While Access is running, can I have a web page that when a button is clicked it will open the form in Access (not in the browser)?
 
That DEPENDS on where your web page is running.

You can insert a HYPERLINK that opens an Access database, but I'm not sure how you'd tell the page where the database is - I just tried it with a simple Word document on my PC , tossed in a hyperlink to a database and viewed the doc in "Web Page Preview" - worked just fine when I clidked the hyperlink text.

BUT, if you put this document on a web server, I'm not sure how it would react. And I can't test that at the moment.

SO, the answer is, if the web page is "local", e.g. on your disk or a network share, you should be able to get it to work. But if the web page is 'served' to a browser by IIS or Apache or something like that, it might not.

Jim

Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at
 
Assuming the database is open already, and like Jim said, both are on a local disk, can I hyperlink to a form within the database?
 
Yes you can. Use the /CMD command-line argument option, and pass it the name of a form you want to open.

"C:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb" _
/cmd "Orders"


then, write a small function that checks the value of the COMMAND argument:

Function CheckCommandLine()
' Check value returned by Command function.
If Command = "Orders" Then
DoCmd.OpenForm "Orders"
ElseIf Command = "Employees" Then
DoCmd.OpenForm "Employees"
Else
Exit Function
End If
End Function


Stick a call to this function in the AUTOEXEC macro, and you should be all set.

The above is lifted from Access Help on Command-line arguments, and the COMMAND function.



Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at
 
Thanks!

I very much appreciate your pointing me in the right direction.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top