Code:
Try
mySqlCommand.CommandText = "INSERT INTO quin (Type, DateRaised, Status, " _
& "Company, Address, Postcode, Support, TasksCompleted, HoursAllocated, HoursUsed, OverLim, HourlyRate, " _
& "ExtendedCost, MonthlySupport, Vat, Total, qutask, qucost) " _
& " VALUES " _
& "(@Type, @DateRaised, @Status, " _
& "@Company, @Address, @Postcode, @Support, @TasksCompleted, @HoursAllocated, @HoursUsed, " _
& "@OverLim, @HourlyRate, @ExtendedCost, @MonthlySupport, @Vat, @Total, @Qutask, @Qucost)"
mySqlCommand.Parameters.AddWithValue("@Type", cbType.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@DateRaised", tbDateRaised.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@Status", cbStatus.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@Company", cbCompany.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@Address", tbAddress.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@PostCode", tbPostCode.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@Support", tbSupport.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@TasksCompleted", lvTasksComp.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@HoursAllocated", tbHoursAlo.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@HoursUsed", tbHoursUsed.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@OverLim", tbOverLim.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@HourlyRate", tbHourRate.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@ExtendedCost", tbExtended.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@MonthlySupport", tbMonthCharge.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@Vat", cbVat.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@Total", tbTotal.Text.Trim)
mySqlCommand.Parameters.AddWithValue("@Qutask", ??)
mySqlCommand.Parameters.AddWithValue("@Qucost", ??)
Thanks in Advance