Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 8th, 2003, 12:42 AM
Ash Ash is offline
Registered User
 
Join Date: Aug 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default custom menus don't work with a shared adp

I have an Access ADP with the ADP file is saved on common / shared drive & Directory which all workstations can read and write to. The application is run using Access 2000 runtime version. The application has a standard custom menu for most forms with a Functions menu rebuilt through VBA code evertime a different form becomes active.

The menus work fine for first person to load the adp however everyone else gets an error message "Can't find macro ..... The macro doesn't exist or the macro is new and hasn't been saved". This error only occurs with the standard menu options. The dynamically menu options seem to work fine.

Can anyone tell me what might cause this problem or point me to
somewhere I might find the cause and a fix?


 
Old August 8th, 2003, 05:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ash

Sounds like a conflict between the different users.

Letting users use the same front-end database is never a good idea. Install a copy on each of your users machines and I'll (almost) guarentee the problem will go away!


Brian Skelton
Braxis Computer Services Ltd.
 
Old August 11th, 2003, 10:52 PM
Ash Ash is offline
Registered User
 
Join Date: Aug 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian

Thanks for the suggestion. Having separate copies of the front end files for each user does avoid this problem, however, the client's IT Unit have a strong preference for a single central copy. I assume it is to make their job for distribution / maintenance easier (but they could also just be a bit retentive).

I have tried building part of the menu dynamically through VBA code and this seems to fix the problem. Unless I find the cause and a different solution I guess I will be building the entire menu through VBA code at runtime.
 
Old August 12th, 2003, 01:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 120
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ash

Why not place a batch file on the server that the users can click on to launch your application?

Assuming your ADP isn't too big, the batch file could delete any old copy of the database, copy a new version to the users local drive and then launch the database.

This should solve the menu problem, speed up your database, and keep the IT department happy.


Brian Skelton
Braxis Computer Services Ltd.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Server Control....Custom Property Editor ZArrinPour ASP.NET 1.0 and 1.1 Basics 1 June 15th, 2010 11:30 AM
Web Service, Custom Control, Custom Return Type robzyc ASP.NET 2.0 Basics 6 June 10th, 2008 08:03 AM
ADP OpenReport() ginoitalo Access 8 November 29th, 2004 09:10 PM
stored procedures in ADP do not work on other comp sherr8 SQL Server 2000 19 September 16th, 2004 10:29 AM
stored procedures in ADP do not work on other comp sherr8 Access 15 June 5th, 2004 01:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.