Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Opening an MS Access Database

Guest
Jun 22, 2007 Jun 22, 2007
I have an app that attempts to "launch" MS Access and open a database. MS Access is starting up successfully, but the user is presented, by MS Access a message that reads "You do not have exclusive access to the database at this time. If you proceed to make changes, you may not be able to save them later." - I am using cflocation to launch ms access with the selected database file. What might I be doing to cause this message to appear and what is the best way to open a database launch the ms access application through my cf app. I have verified the obvious that another user might have the file open at the time we attempt to access the database, and we are the only process accessing the file at that time.

Any help would be greatly appreciated.

Craig
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 22, 2007 Jun 22, 2007
Please don't cross-post - you already have this question in the Database Access forum.

When you say you "launch" MS Access, exactly what code are you executing to do this? Usually, you code a CFQUERY to do a SELECT of what data you want to retrieve. That would not create the message you are seeing.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 22, 2007 Jun 22, 2007
well, under almost all conditions, you would never use cfml to work on the database in this way. what extreme condition are you under in order to be doing this? you need to develop interfaces to view, edit, insert, delete, etc... the data in the db. the best way to "open" an MS Access DB in CF is to create a datasource in your CF Admin control panel or in your windows ODBC control panel. if you already have a datasource, it might be that that has a lock on your db. check the dir that the .mdb is in and see if there is a .ldb
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 22, 2007 Jun 22, 2007
I do understand about working with databases and using cfquery - this is not what the user wanted to do with this application. The application in question is to act like a portal to all of their files. It acts as a way of organizing and finding these files easier than using the windows filing system. The screen that shows information (File name, subject matter expert and various other information about the file) also contains a "launch" button that allows the user to open the appropriate application (excel, access etc). The application also allows the user to store links ( http://....) and a browser window will open in those cases. When the selected file is an mdb file, this is when we get the message in question. Does that help?

Craig
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 22, 2007 Jun 22, 2007
LATEST
yikes.

yes, this does help. but, first of all, this is probably a bad time to be building these types of apps. 5 years ago, it would have been fine, but, between IE 7 and future browsers, you will probably begin to run into security issues. plus, depending on how network security is in this domain, priviledges would need to be set up in order to let the web server access this file system. in which case gives any user that access the app the access to this file system. but, only to view and print. any saving would have to be done on the local machine unless the user has access to the file dir in which case would have to navigate back to it. also, i hope it isnt exposed to the www which would be an easy target for hackers to destroy/steal that stuff.

now, if the user already has access to this file system, why not just use a link like \\myserver\share which would open the file system up? or make the link \\myserver\share\thedatabase.mdb
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 22, 2007 Jun 22, 2007
I think what you are after is CFEXECUTE rather than CFLOCATION.

Do you have security enabled on the Access database? If so, is the username and password being passed to the Access database when you attempt to start it?

Is the Access application secuirty set up to open the database in shared mode?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources