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

Visual Basic

 
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 
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 
arunendra wrote:
1.for the first part (comapcting), the string (source) now looks like the following when it is passed to the function:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=;User Id=Admin;password= ;Jet OLEDB:Database Password=bill1234
is the formation right?


Nope. You didn't supply a path to the database you want to compact. Notice that Data Source doesn't have anything after it?

arunendra wrote:
2. the part : oJet.CompactDatabase(srcConn, dstConn), gives a compiler error
"expected:="; if i remove the brackets, there is no error, will it work?


Remove the paranthesis and it'll work. It's been about 6 years since I've used VB6. I forgot, if your don't use the return value, you don't supply paranthesis around the arguments your passing to the function.


arunendra wrote:
3. if i try like that (with out bracket and with the string formed above, and when run,when the compactdatabase part comes, the error msg occures :
"object variable or with block variable not set"
what shall i do?


Because you didn't supply the Data Source parameter in question 1. How is it supposed to know which database to compact if that Data Source is blank???


arunendra wrote:
you want me to map a drive, but how to do and in which machine i have to do?


This is why I told you to read up on Windows networking before you tried this! You have to map a drive before you launch this application. This is done through login scripts or you can setup a persistant drive mapping on each client workstation, or map the drive using a batch file before the app is launched, ...


Dave Kreskowiak
Microsoft MVP - Visual Basic

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 
AnswerRe: my mBookSale is not declared But Why ?? Pin
Steve Pullan13-Apr-06 19:56
Steve Pullan13-Apr-06 19:56 
GeneralRe: my mBookSale is not declared But Why ?? Pin
MickYL14-Apr-06 15:49
MickYL14-Apr-06 15:49 

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.