Click here to Skip to main content
15,914,500 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Vb 6 and access 2000 in LAN Pin
arunendra14-Apr-06 5:15
arunendra14-Apr-06 5:15 
GeneralRe: Vb 6 and access 2000 in LAN Pin
Dave Kreskowiak14-Apr-06 6:43
mveDave Kreskowiak14-Apr-06 6:43 
GeneralRe: Vb 6 and access 2000 in LAN Pin
arunendra14-Apr-06 7:10
arunendra14-Apr-06 7:10 
GeneralRe: Vb 6 and access 2000 in LAN Pin
Dave Kreskowiak14-Apr-06 7:14
mveDave Kreskowiak14-Apr-06 7:14 
GeneralRe: Vb 6 and access 2000 in LAN Pin
arunendra14-Apr-06 23:35
arunendra14-Apr-06 23:35 
GeneralRe: Vb 6 and access 2000 in LAN Pin
Dave Kreskowiak15-Apr-06 3:37
mveDave Kreskowiak15-Apr-06 3:37 
GeneralRe: Vb 6 and access 2000 in LAN Pin
arunendra15-Apr-06 5:18
arunendra15-Apr-06 5:18 
GeneralRe: Vb 6 and access 2000 in LAN Pin
Dave Kreskowiak15-Apr-06 6:47
mveDave Kreskowiak15-Apr-06 6:47 
arunendra wrote:
But in the code you sent string.format part is showing a compile error and the error says : "expected (". Is it problem in my vb? do i have to do something to rectify this error?


I forgot, you're using VB6. The code I posted is for VB.NET. Here's the VB6 translated portions:
    Dim srcConn As String
    srcConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & sSource & _
        ";User Id=" & sUser & _
        ";Password=" & sPassword & _
        ";Jet OLEDB:Database Password=" & sSystemPassword
 
    Dim dstConn As String
    dstConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & sDestination & _
        ";Jet OLEDB:Engine Type=5" & _
        ";Jet OLEDB:Database Password=" & sSystemPassword


arunendra wrote:
N.B. just now i have found something!! the code for the client doesnt run until i get into that particular machine where the database stored with a user id and password, so my question is can i integrate that machine user id and password in my code?

Can it be put into the code? Yes. Is it a good idea?? HELL NO!! Don't even think of doing this!

Map a drive letter to the network share before you try to launch the .EXE. The process of mapping the drive will ask for the users name and password, adding a FAR MORE MANAGEABLE layer of security to your application. If you put it in your code, your code can then NOT be transfered to another environment, being explicitly tied to this exact network setup. Not a good idea...

Then, in your connection string, supply the full path to the database file using the drive letter that was mapped, i.e.: F:\Technopack.mdb.



Dave Kreskowiak
Microsoft MVP - Visual Basic

GeneralRe: Vb 6 and access 2000 in LAN Pin
arunendra16-Apr-06 2:26
arunendra16-Apr-06 2:26 
GeneralRe: Vb 6 and access 2000 in LAN Pin
Dave Kreskowiak16-Apr-06 10:24
mveDave Kreskowiak16-Apr-06 10:24 
GeneralRe: Vb 6 and access 2000 in LAN Pin
arunendra17-Apr-06 0:02
arunendra17-Apr-06 0:02 
GeneralRe: Vb 6 and access 2000 in LAN Pin
Dave Kreskowiak17-Apr-06 2:56
mveDave Kreskowiak17-Apr-06 2:56 
Questionhotmail account Pin
TAREQ F ABUZUHRI14-Apr-06 2:06
TAREQ F ABUZUHRI14-Apr-06 2:06 
GeneralRe: hotmail account Pin
Guffa14-Apr-06 2:42
Guffa14-Apr-06 2:42 
AnswerRe: hotmail account Pin
Dave Kreskowiak14-Apr-06 4:32
mveDave Kreskowiak14-Apr-06 4:32 
Questionerror in executing site from server(its urgent) Pin
Amit Agarrwal13-Apr-06 23:35
Amit Agarrwal13-Apr-06 23:35 
AnswerRe: error in executing site from server(its urgent) Pin
CWIZO14-Apr-06 2:35
CWIZO14-Apr-06 2:35 
Questionsetup and deployment Pin
naeeemkhan13-Apr-06 20:44
naeeemkhan13-Apr-06 20:44 
AnswerRe: setup and deployment Pin
Mekong River13-Apr-06 23:21
Mekong River13-Apr-06 23:21 
GeneralRe: setup and deployment Pin
arunendra14-Apr-06 2:13
arunendra14-Apr-06 2:13 
GeneralRe: setup and deployment Pin
Mekong River14-Apr-06 16:40
Mekong River14-Apr-06 16:40 
AnswerRe: setup and deployment Pin
Dave Kreskowiak14-Apr-06 4:33
mveDave Kreskowiak14-Apr-06 4:33 
Questioni want the logic of three dimension array with vb Pin
saqibaba13-Apr-06 19:59
saqibaba13-Apr-06 19:59 
AnswerRe: i want the logic of three dimension array with vb Pin
Dave Kreskowiak14-Apr-06 4:36
mveDave Kreskowiak14-Apr-06 4:36 
Questionmy mBookSale is not declared But Why ?? Pin
MickYL13-Apr-06 17:54
MickYL13-Apr-06 17:54 

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.