Hi,
I created an application using MS Visual Basic Programming Language and MS Access Database. There have many Insert, update and delete statement in the application.
I found that after I packing the application, I install it to my PC (used to develope the application). The insert update and delete statement in the application was function normally. However, when I install the application to others PC (include windows 98 and 2000). I found the update and delete in the application will not take effect to the Access Database. Some source code is as follow:
Dim dbProvider As String = "Microsoft.Jet.OLEDB.4.0"
Dim dbCnn As String = "\\Adserver\apps\Project2003
\Uniform\Data\UniformTest.mdb"
dim sql as string
dim cnnForm As adodb.Connection
Set cnnForm = Nothing
Set cnnForm = New adodb.Connection
cnnForm.Provider = dbProvider
cnnForm.CursorLocation = adUseClient
cnnForm.Open dbCnn, "", ""
sql = "update MeasureSch" & _
" set Measurement = '" & action & "'" & _
", Modify_User = '" & modVariable.user & "'" & _
", Modify_Date = #" & Format(Date, "yyyy/mm/dd"
& "#" & _
" where Cust_Code = '" & modVariable.custCode & "'" & _
" and Branch_Code = '" & cboBranchCode.Text & "'" & _
" and Staff_Code = '" & cboStaffCode.Text & "'" & _
" and Measure_Date = #" & cboMeasureDate.Text & "#" & _
" and Measure_Time = '" & cboMeasureTime.Text & "'"
cnnForm.Execute sql
Does anyone have encounter such problem? How do you solve the problem? Does anything I have to check?
Any suggestion is welcome!
Thank you thank you very much!!!
kyon
I created an application using MS Visual Basic Programming Language and MS Access Database. There have many Insert, update and delete statement in the application.
I found that after I packing the application, I install it to my PC (used to develope the application). The insert update and delete statement in the application was function normally. However, when I install the application to others PC (include windows 98 and 2000). I found the update and delete in the application will not take effect to the Access Database. Some source code is as follow:
Dim dbProvider As String = "Microsoft.Jet.OLEDB.4.0"
Dim dbCnn As String = "\\Adserver\apps\Project2003
\Uniform\Data\UniformTest.mdb"
dim sql as string
dim cnnForm As adodb.Connection
Set cnnForm = Nothing
Set cnnForm = New adodb.Connection
cnnForm.Provider = dbProvider
cnnForm.CursorLocation = adUseClient
cnnForm.Open dbCnn, "", ""
sql = "update MeasureSch" & _
" set Measurement = '" & action & "'" & _
", Modify_User = '" & modVariable.user & "'" & _
", Modify_Date = #" & Format(Date, "yyyy/mm/dd"
" where Cust_Code = '" & modVariable.custCode & "'" & _
" and Branch_Code = '" & cboBranchCode.Text & "'" & _
" and Staff_Code = '" & cboStaffCode.Text & "'" & _
" and Measure_Date = #" & cboMeasureDate.Text & "#" & _
" and Measure_Time = '" & cboMeasureTime.Text & "'"
cnnForm.Execute sql
Does anyone have encounter such problem? How do you solve the problem? Does anything I have to check?
Any suggestion is welcome!
Thank you thank you very much!!!
kyon