string strUpdateSelect = "UPDATE policy SET wsc001 = " + nBPC +" "+ "WHERE policy.controlnum == '"+ controlNumber +"' ";~~Bonnie
>Data Type mismatch
>
>>int nBPC = 4; >string strUpdateSelect = "UPDATE policy SET wsc001 = '" + nBPC +" ' "+ > "WHERE policy.controlnum == '"+ controlNumber +"' "; > >//*-- Create a command object with the update select >OleDbCommand VFP7UpdateCommand = new OleDbCommandstrUpdateSelect,VFPConnection); >// Execute the command >VFP7UpdateCommand.ExecuteNonQuery(); >//Close the connection >VFPConnection.Close(); >>