here is my code please help me.. thanks..
Dim conFoxpro As New OleDbConnection("provider=provider;Data Source=path;Collating Sequence = general") 'Create a new Foxpro connection
Dim cmdFoxpro As New OleDbCommand("Select * from pe_civil_status WHERE DELETED() and date_updt >= {^" & min_date_update.Year & "-" & min_date_update.Month & "-" & min_date_update.Day & " " & min_date_update.Hour & ":" & min_date_update.Minute & ":" & min_date_update.Second & "}", conFoxpro)
MsgBox("Select * from pe_civil_status WHERE DELETED() and date_updt >= {^" & min_date_update.Year & "-" & min_date_update.Month & "-" & min_date_update.Day & " " & min_date_update.Hour & ":" & min_date_update.Minute & ":" & min_date_update.Second & "}")
Dim daFoxpro As New OleDbDataAdapter
Dim dsFoxpro As New DataSet
Try
conFoxpro.Open()
daFoxpro.SelectCommand = cmdFoxpro
daFoxpro.SelectCommand.ExecuteNonQuery()
daFoxpro.Fill(dsFoxpro, "pe_civil_status")
dgMysql.DataSource = dsFoxpro.Tables("pe_civil_status")
MsgBox(dsFoxpro.Tables("pe_civil_status").Rows.Count)
Catch ex As Exception
MsgBox(ex.ToString)
Finally
conFoxpro.Close()
conFoxpro.Dispose()
cmdFoxpro.Dispose()
daFoxpro.Dispose()
daFoxpro.Dispose()
dsFoxpro.Dispose()
End Try

New Topic/Question
Reply




MultiQuote





|