[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

Open a new mdb from code

Asked by LJG in Microsoft Access Database, Access Coding/Macros, Access Architecture/Design

I need to open a database from my VBA code.
1) Close my current database (I cant open up a new copy of Access because Im using workgroup security and dont want the user to have to put in the password again)
2) Open up a new database inside the current copy of Access.

3) I can do what I want with send keys  however I dont like it  Is there a better way.
       SendKeys "^o" & " H:\GreatApp\MyApp.mdb" & "~", False

----------------- Below is why  not any added info -----------------
OK  if you get this far you might be asking why is this crazy fool wanting to open up a database from inside VBA.  The below is the answer and as always I welcome comments on my craziness.  You dont need to read below to answer the above question  but if you must know go further.

My clients have the frontend mdb on their C drive and the data on a network.  I normally design databases that often have temp tables in the frontend mdb to put data in before I run a report.  In addition I will output Excel spreadsheets to the users local C drive.

Now that I have developed an application for a company they have their C: drives locked and dont give the users any specific space on the network.  THEY DONT WANT TO CHANGE.  So to make my application work on the network where if two users happen to run the same report that use the temp table at the same time  I need a separate mdb for each user.

The solution.

Have a database with just one object  a function that does the following.
1)      gets the users name (CurrentUser)  eg Joe Blow
2)      See if there is a frontend database in the folder with the current users name.
H:\GreatApp\Joe Blow\ MyApp.mdb
If not  Create a folder  -->  H:\GreatApp\Joe Blow
Copy the application from H:\GreatApp\MyApp.mdb  to H:\GreatApp\Joe Blow \MyApp.mdb
3)      With the current copy of Access (remember we opened it using Access workgroup security)
Close the small mdb
Open H:\GreatApp\Joe Blow \MyApp.mdb
[+][-]06/18/09 01:53 PM, ID: 24661627Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Microsoft Access Database, Access Coding/Macros, Access Architecture/Design
Sign Up Now!
Solution Provided By: thenelson
Participating Experts: 2
Solution Grade: A
 
[+][-]06/18/09 02:00 PM, ID: 24661674Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/09 02:10 PM, ID: 24661754Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/18/09 02:38 PM, ID: 24661955Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/09 02:49 PM, ID: 24662040Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/09 02:50 PM, ID: 24662047Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/18/09 03:01 PM, ID: 24662142Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/09 03:03 PM, ID: 24662163Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/18/09 03:25 PM, ID: 24662319Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/09 03:42 PM, ID: 24662420Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/19/09 07:44 AM, ID: 24666803Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06/19/09 03:33 PM, ID: 24670639Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/26/09 07:20 AM, ID: 24721196Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/26/09 07:25 AM, ID: 24721246Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625