Cita:
Dim comadosP = conexion.CreateCommand
comadosP.CommandType = CommandType.Text
comadosP.CommandText = "insert into onalH SELECT * FROM [MS Access;DATABASE=" & TextBox1.Text & "].[onalH]"
'comadosP.Parameters.AddWithValue("@FI", Fecha1.Value.Date.ToString("dd/MM/yyyy"))
'comadosP.Parameters.AddWithValue("@FF", Fecha2.Value.Date.ToString("dd/MM/yyyy"))
conexion.Open()
frmProgressbar.Show()
frmProgressbar.Text = "Actualizando Ventas"
Dim Lecto3 = comadosP.ExecuteNonQuery
comadosP.CommandType = CommandType.Text
comadosP.CommandText = "insert into onalH SELECT * FROM [MS Access;DATABASE=" & TextBox1.Text & "].[onalH]"
'comadosP.Parameters.AddWithValue("@FI", Fecha1.Value.Date.ToString("dd/MM/yyyy"))
'comadosP.Parameters.AddWithValue("@FF", Fecha2.Value.Date.ToString("dd/MM/yyyy"))
conexion.Open()
frmProgressbar.Show()
frmProgressbar.Text = "Actualizando Ventas"
Dim Lecto3 = comadosP.ExecuteNonQuery