473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

association

i am searching for an answer but i'm not sure how to ask the question. in the program visual basic 6 i am writing i have a access file and a seprate folder that are associated with my program. the program, file, and folder are all located on my flash drive so becouse of the need to transport it to class. in the program both the access file and folder are located on the L drive (the name of the flash drive at my house), but at school the flash drive is located on the H drive. this causes a lot of changes in the program when coming from or going to school. this got me thinking; when i finish the program it would have to remain in the same place it was created and if the drive letter were to change i would loose the programs use. is their a way to make a file or folder moveable or reletive to the program so you can install it on any drive you wish.
Nov 16 '06 #1
1 1073
willakawill
1,646 1GB
i am searching for an answer but i'm not sure how to ask the question. in the program visual basic 6 i am writing i have a access file and a seprate folder that are associated with my program. the program, file, and folder are all located on my flash drive so becouse of the need to transport it to class. in the program both the access file and folder are located on the L drive (the name of the flash drive at my house), but at school the flash drive is located on the H drive. this causes a lot of changes in the program when coming from or going to school. this got me thinking; when i finish the program it would have to remain in the same place it was created and if the drive letter were to change i would loose the programs use. is their a way to make a file or folder moveable or reletive to the program so you can install it on any drive you wish.
Hi. good question.
This will work;
Expand|Select|Wrap|Line Numbers
  1. Dim strPath As String
  2. Dim strDatabase As String
  3.  
  4. strPath = App.Path()
  5. strDatabase = strPath & "\YourDatabaseFolder\YourAccessName.mdb"
  6.  
  7.  
Nov 16 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: steve | last post by:
Hi, I just upgraded my php but ran into a problem. Never seen this before. Somehow it seems I lost php file association. When I do a http://localhost/something.php I get a prompt for dowload...
0
by: Stefano Noferi | last post by:
We are pleased to announce the foundation of the Zope Italia Association (AZI - Associazione Zope Italia). It was created by a couple of mailing list users in the last months (since march). ...
6
by: Justin F | last post by:
I have set up file association for my application (VB.Net). I'm having problems getting the filename that was double-clicked. On my machine at work, if the filename being passed in to the...
2
by: David | last post by:
Hi, I am trying to create a two way association between 2 objects. I intended to do it by having a pointer to each other but I am getting compilation errors. At the moment I can create both...
4
by: Rob | last post by:
I have an Access application that allows users to open up certain files from within Access (.doc files with automation, .pdf's with a pdf viewing form). Other formats, we want to use Internet...
1
by: JerryP | last post by:
Hi Experts, from my program I offer the user to launch different files from a directory (normaly in this directory are .txt files) - but sometimes other files may be in there - so if my program...
3
by: Bret Pehrson | last post by:
I'm working on a (non-trivial) project which includes various & numerous objects, some in my direct source control, some not. I'm finding the need to somehow associate one object with another,...
6
by: Nak | last post by:
Hi there, I am implementing file association from within my application, association that occurs after installation. Anyway, I remember a while back seeing a key in the registry that was used...
1
by: Doug Bell | last post by:
Hi, Suddenly clicking on an SLN File type will not open Visual Studio on my PC. Not sure what I have done. The association settings still look to be correct but I get an error message saying that...
1
by: CatchSandeepVaid | last post by:
I have posted this question in hibernate forums also.. As this forum is related to java, i am posting it here also ... In hibernate, presently one-to-one associations are fetched non-lazily... I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.