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

Visual Basic

 
AnswerRe: Vb 6 and access 2000 in LAN Pin
Dave Kreskowiak14-Apr-06 3:34
mveDave Kreskowiak14-Apr-06 3:34 
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 
Thanks dave!
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?

and also, i want everyone to open the database, ofcourse through the software so that they can insert/update/delete/select records. for that i have used following code for opening the connection :
connect_string is string type data
Connect_String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\Flexnet\TECHNOPACK\technopack.mdb;Persist Security Info=False;Jet OLEDB:Database Password=bill1234"
con.execute str

and for selecting data i have used :
dim str as string
str="
str="select * from Stock"
set rec=nothing
rec.Open str, Con, adOpenStatic, adLockOptimistic, adCmdText

and for any update/delete/insert i have first built the string and then
simply executed the statement by con.execute str where con is the adodb connection.

for that machine where the database will reside i have used the following
string :
'con is the adodb connection
Connect_String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & app.path & "\TECHNOPACK\technopack.mdb;Persist Security Info=False;Jet OLEDB:Database Password=bill1234"
con.execute str

Have i done something wrong? Please note that i want every pc to have the same right, so that everyone can use the database. and for the compacting the database i will provide that option only in the machine where the database will reside.
and also if possible please send the compacting code you were talking about.
Regadrs
Arunendra


-- modified at 12:11 Saturday 15th April, 2006
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? i tried to get into the machine with the following command from the run -> \\machine_name; it asked for user id and password, i gave them and then the shared resources appeared. then i tried to open the exe and the exe worked!! so is my question! am i right?? and can this be a way of connecting in the workgroup for running my software?
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 
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 

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.