Click here to Skip to main content
15,923,376 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Hyperlinks, VB, and Access Pin
J. Dunlap30-Apr-03 9:07
J. Dunlap30-Apr-03 9:07 
GeneralArray Pin
sardinka30-Apr-03 6:01
sardinka30-Apr-03 6:01 
Generalu Pin
Anonymous29-Apr-03 14:35
Anonymous29-Apr-03 14:35 
GeneralRe: u Pin
Nick Seng29-Apr-03 16:00
Nick Seng29-Apr-03 16:00 
GeneralRe: u Pin
Daniel Turini30-Apr-03 6:41
Daniel Turini30-Apr-03 6:41 
GeneralRe: u Pin
Villly4-May-03 3:52
Villly4-May-03 3:52 
GeneralRefresh without erasing Pin
Zlosk29-Apr-03 11:27
Zlosk29-Apr-03 11:27 
Generaldatabase connection Pin
Anonymous29-Apr-03 5:40
Anonymous29-Apr-03 5:40 
Hello everyone,

I am having a crazy problem, and cannot find anything on the Internet
as to why this is happening.

I have a project folder, in which I have a Database folder.

+Project (Folder)
Project files (forms)
+Database (Folder)
Database files
+XML (Folder)

When I make an OLEdbConnection from a form in my project files folder, the absolute
path looks like this
D:\Documents and Settings\j\Desktop\DEVELOPMENT\GradID\Database\GradIdentDB.mdb
when I test the connection, it works.

however, I want it to be a relative link so I set it up like this since I am
in the project folder and want to go down into the database
folder.

.\Database\GradIdentDB.mdb


However, when I test the connection I get this error.
D:\Documents and Settings\j\Desktop\DEVELOPMENT\GradID\Database\Database\GradIdentDB.mdb


Notice the two "Database" in a row, it's as if my project is in the Database
folder. Understand?

The relative link that works is .\GradIdentDB.mdb
Again, it looks like Visual Studio thinks my form is in the Databse folder,
but it isn't, it is in the Project Folder.

Someone suggested making sure my output path as /bin, mine says bin/, and
when I tried to change it to /bin, VS.NET turned it back to bin/


Anyone know how to fix this?

Also, another similar problem creeps up when I import names from an Excel
sheet, say the Excel sheet is in the C:\ root, I'll get an error that says
my path to my .mdb is invalid.

In other words it stops looking here
D:\Documents and Settings\j\Desktop\DEVELOPMENT\GradID\Database\GradIdentDB.mdb
and starts looking here
C:\Database\GradIdentDB.mdb

if the Excel sheet is in the D:\ root
then it start looking here for my .MDB.
D:\Database\GradIdentDB.mdb

this makes no sense at all.

Any help would be great.

thanks,
Jason



GeneralRe: database connection Pin
Zlosk29-Apr-03 10:29
Zlosk29-Apr-03 10:29 
GeneralDrag Controls Pin
Stefano Ottaviani28-Apr-03 20:07
Stefano Ottaviani28-Apr-03 20:07 
QuestionHelp??? Pin
Anonymous28-Apr-03 17:24
Anonymous28-Apr-03 17:24 
GeneralProblem with button working Pin
Kogorman28-Apr-03 12:47
Kogorman28-Apr-03 12:47 
GeneralTables, Access, and VB Pin
Anonymous28-Apr-03 10:05
Anonymous28-Apr-03 10:05 
GeneralClick event not firing Pin
Christopher J Anderson28-Apr-03 8:45
Christopher J Anderson28-Apr-03 8:45 
GeneralPrint Pin
Anonymous28-Apr-03 6:31
Anonymous28-Apr-03 6:31 
GeneralMultiline ListViews Pin
ClaireMP28-Apr-03 4:15
ClaireMP28-Apr-03 4:15 
GeneralA good book ( for a C++ programmer) to learn Visual Basic 6.0... Pin
Braulio Dez28-Apr-03 4:04
Braulio Dez28-Apr-03 4:04 
Generalnetwork properties Pin
CompuGod28-Apr-03 2:56
CompuGod28-Apr-03 2:56 
GeneralDisabled Combo Box Text Color Pin
BigRetina28-Apr-03 2:28
BigRetina28-Apr-03 2:28 
GeneralIIS FTP Pin
paulwhygle26-Apr-03 20:06
paulwhygle26-Apr-03 20:06 
GeneralRe: IIS FTP Pin
ScaleOvenStove5-May-03 13:21
ScaleOvenStove5-May-03 13:21 
GeneralEnable and Disable Pin
CompuGod26-Apr-03 5:45
CompuGod26-Apr-03 5:45 
GeneralI need a help Pin
Nicholas Naddaf25-Apr-03 4:53
Nicholas Naddaf25-Apr-03 4:53 
GeneralRe: I need a help Pin
Ray Cassick25-Apr-03 8:19
Ray Cassick25-Apr-03 8:19 
Generalfiltering in Access with VB Pin
Anonymous24-Apr-03 10:13
Anonymous24-Apr-03 10:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.