ms-access


MS Access - Open database form from URL


I'm trying to open a form from an url. This ms access database will be hosted on a shared folder in an network, and the costumer has asked me if it's possible to open an database form (i'll have to pass an ID).
If this were in web environment i would do this without any problem, but honestly in ms access i have no idea how to do this.
Can someone help me?
Have a look at Register protocol and Registering an Application to a URL Protocol. They have a example registry file on how to register a protocol:
REGEDIT4
[HKEY_CLASSES_ROOT\foo]
#="URL:foo Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\foo\shell]
[HKEY_CLASSES_ROOT\foo\shell\open]
[HKEY_CLASSES_ROOT\foo\shell\open\command]
#="\"C:\\Program Files\\Application\\program.exe\" \"%1\""
You can change the last line to something like:
#="\"C:\\Program Files\\Office\\access.exe\" \"C:\\path\\to\\your\\db.mdb\" /cmd \"%1\""
If you URL is foo:241245, the following command is called:
"C:\Program Files\Office\access.exe" "C:\path\to\your\db.mdb" /cmd "241245"
In Access, the commandline arguments are returned by the Command function:
In the direct window:
?Command
241245
Open your Access database from the network location (i.e., with a UNC path, not from a drive letter, or locally).
Navigate so you can see the form listed in your database.
Drag the form to your desktop. A shortcut directly to the form will be created there.
I don't think this is a good idea, though. It's a substitute for a user interface in your Access application. Additionally, your description of the problem sounds like you're intending to have multiple people opening the same database file. This is a really bad practice -- best practice is for the database to be split (back end with data tables only on the server, and individual copy of the front end with forms/reports/etc. on each user's workstation), and more than one user should never be opening the same front end at the same time.
The database can be opened from a URL like any other file:
file://server/share/path/database.mdb
This won't work if the database has user-level security on it though. I've only ever done that by using a windows shortcut.
If you're not using user-level security and the URL works, you can set the desired form to open automatically on load by going to the Access Options screen and the Current Database tab, then selecting the desired form from the Display Form drop-down list.
Oops - I just noticed that you said you'd need to pass an ID. I don't know if that's possible using a URL.

Related Links

How to make the input dates which user type in the prompt show in report ? MS Access 2013
Access 2016 create table with field properties for combobox
MS Access Date Grouping is not working in report
Access query to find who didn't test over a range of dates
Error 6 Overflow using Access 2.0 and Access Basic
Runntime error 2115
Is there a way to protect a field so that only certain users can edit?
Format Text Field To Date In Access Query
Changing date format in access table
Sum daily totals plus grand total from multiple tables in MSSQL
Access ComboBox to TextBox
Pulling text from another text field in MS-access
Null indexed values in Access ComboBox
Access DoCmd.TransferText Specification Argument Location
Access how to see the database mapping
MS-Access users can not access linked text file

Categories

HOME
image-processing
ngrx
single-sign-on
homebrew
onedrive
maven-3
tizen-web-app
rdf
installshield
ezpublish
opengl-es-2.0
paradox
floating-action-button
fallback
iron-router
windows-7-x64
http-status-code-504
lucene.net
introduction
autocad-plugin
zurb-foundation-6
lcd
facebook-access-token
linkerd
webkitspeechrecognition
unboundid
yadcf
.net-4.0
functor
catel
calibre
hybridauth
windows-dev-center
repo
picasso
jquery-bootgrid
qwerty
libraries
serverside-rendering
hilbert-curve
mesos-chronos
sql-server-agent
glew
nxlog
heightmap
acoustics
slick-3.0
xml-documentation
apache-fop
pubmed
dotnetzip
google-perftools
dynamics-sl
mediaelement
libpng
login-control
skobbler-maps
pagedlist
skype4py
pagerank
php-internals
ipconfig
freelancer.com-api
marching-cubes
createprocessasuser
mmc
truevault
oxwall
zend-route
article
prettify
dexterity
ora-00911
buster.js
pushbackinputstream
plasma
mqx
sublist
dsn
ticoredatasync
dotnethighcharts
pendrive
cufon
gnustep
pydot
gcj
coredump
invite
self-extracting
lpeg
ncqrs
user-friendly
boost-smart-ptr
defensive-programming
ubuntu-9.04
geneva-server

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App