Click here to Skip to main content
15,896,730 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
Iftikhar Ali6-Feb-06 4:13
Iftikhar Ali6-Feb-06 4:13 
GeneralRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
Chatura Dilan7-Feb-06 1:24
Chatura Dilan7-Feb-06 1:24 
AnswerRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
Iftikhar Ali9-Feb-06 4:35
Iftikhar Ali9-Feb-06 4:35 
AnswerRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
kostasdiktia26-Feb-06 13:12
kostasdiktia26-Feb-06 13:12 
GeneralRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
Iftikhar Ali9-Feb-06 4:42
Iftikhar Ali9-Feb-06 4:42 
GeneralRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
kostasdiktia29-Feb-06 7:47
kostasdiktia29-Feb-06 7:47 
QuestionRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
Iftikhar Ali9-Feb-06 19:34
Iftikhar Ali9-Feb-06 19:34 
AnswerRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
kostasdiktia29-Feb-06 20:30
kostasdiktia29-Feb-06 20:30 
Ok listen...

First of all:
Imports System.IO 'on the top of your code
Dim temp as string 'in your code

Next step, is to add the .mdb file (Access file) (for example Data.mdb) to your project! Because in the future, you may built a setup to install this program in other computers, its good this file have the path of your .exe, so you must add it in C:\...\EXAMPLEPROJECT\bin if you have Visual Studio 7 or in C:\...\EXAMPLEPROJECT\bin\Debug\ if you have Visual Studio 8!

So this code line [temp = System.IO.Path.GetFullPath("Data.mdb")] take the path of your .exe and add in the end of this string the "\Data.mdb"..so you have the path of your Access file, which now is in folder with your .exe!

If you have more questions..tell me...
I hope I help you...Smile | :) Big Grin | :-D Laugh | :laugh: ;)




-- modified at 16:26 Friday 10th February, 2006
AnswerRe: How to make a Connection to a Password protected Access Database in VB.NET? Pin
Iftikhar Ali16-Feb-06 20:12
Iftikhar Ali16-Feb-06 20:12 
QuestionGet parameter count of a Stored procedure Pin
Krishnaraj Barvathaya B5-Feb-06 19:19
Krishnaraj Barvathaya B5-Feb-06 19:19 
AnswerRe: Get parameter count of a Stored procedure Pin
alien viper5-Feb-06 21:17
alien viper5-Feb-06 21:17 
AnswerRe: Get parameter count of a Stored procedure Pin
Colin Angus Mackay5-Feb-06 23:10
Colin Angus Mackay5-Feb-06 23:10 
GeneralRe: Get parameter count of a Stored procedure Pin
Krishnaraj Barvathaya B5-Feb-06 23:26
Krishnaraj Barvathaya B5-Feb-06 23:26 
GeneralRe: Get parameter count of a Stored procedure Pin
Colin Angus Mackay5-Feb-06 23:32
Colin Angus Mackay5-Feb-06 23:32 
GeneralRe: Get parameter count of a Stored procedure Pin
Krishnaraj Barvathaya B5-Feb-06 23:39
Krishnaraj Barvathaya B5-Feb-06 23:39 
GeneralRe: Get parameter count of a Stored procedure Pin
alien viper5-Feb-06 23:37
alien viper5-Feb-06 23:37 
QuestionCrystal Report Pin
alien viper5-Feb-06 18:10
alien viper5-Feb-06 18:10 
AnswerRe: Crystal Report Pin
shabonaa6-Feb-06 12:54
shabonaa6-Feb-06 12:54 
QuestionAdministrator Pin
dev dhoundiyal5-Feb-06 17:46
dev dhoundiyal5-Feb-06 17:46 
AnswerRe: Administrator Pin
Dave Kreskowiak6-Feb-06 2:37
mveDave Kreskowiak6-Feb-06 2:37 
QuestionHow to change the font in the title bar Pin
Chatura Dilan5-Feb-06 14:50
Chatura Dilan5-Feb-06 14:50 
AnswerRe: How to change the font in the title bar Pin
Dave Kreskowiak5-Feb-06 16:53
mveDave Kreskowiak5-Feb-06 16:53 
GeneralRe: How to change the font in the title bar Pin
Chatura Dilan5-Feb-06 23:56
Chatura Dilan5-Feb-06 23:56 
QuestionHow to solve PInvokeStackImbalance problem! Pin
JUNEYT5-Feb-06 7:23
JUNEYT5-Feb-06 7:23 
AnswerRe: How to solve PInvokeStackImbalance problem! Pin
Dave Kreskowiak5-Feb-06 7:30
mveDave Kreskowiak5-Feb-06 7:30 

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.