Hi,
I have a connection to a dbase IV file using oledb. I wan to do an update to
a field using a vb function passing two parameters. These 2 parameters are
fields from the same table.
What is the sintax to do this?
Thanks
JFB
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
filePath & ";Extended Properties=dBase IV"
Dim dBaseConnection As New
System.Data.OleDb.OleDbConnection(ConnectionString)
Try
dBaseConnection.Open()
Dim dBaseCommand As New System.Data.OleDb.OleDbCommand("update " & dbfFile &
" set Column4 = ?", dBaseConnection)
'? shouold be pass FSB(parameters)
dBaseCommand.ExecuteNonQuery()
Catch ex As Exception
MsgBox(ex.ToString)
Finally
dBaseConnection.Close()
End Try
Function FSB(ByVal inTrack As String, ByVal inRoute As String) As String
bla...bla....
End Function
Archived from group: microsoft>public>vb>deployment