Solved

Data Base Paths.

Posted on 1998-12-16
2
142 Views
Last Modified: 2010-05-03
I have been told and seen references to not Hard Coding my paths. For example: Set dbsJumpLog = OpenDatabase("C:\JumpLog\JumpLog.mdb").
 I can see the wisdom in not doing this however I do not know the alternate way. After looking through a few thousand questions in the archive I have decided it would be worth a few points to gain this knowledge. Can you help me?
0
Comment
Question by:Bigway
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
uilleann earned 50 total points
ID: 1450797
Set Db = OpenDatabase(App.Path & "\Test.mdb", dbOpenTable)
0
 

Author Comment

by:Bigway
ID: 1450798
Thanks, thats perfect : )
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Child Form in front 4 66
Set WorkSheet  not Working 9 62
Win 10 Automation Error with .doCmd in Access 2 93
Modify Text File with Excel Macro 13 50
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question