Question : MySQL Query Help

I want to insert from one table to another table where names from one table is not existing in another table...here is the query i m using ..

INSERT INTO calc_parts2 (shortName,partNumber,description,vendor) SELECT shortName,partNumber,description,vendor FROM wiz_blade WHERE calc_parts2.shortName!=wiz_blade.shortName;

I am getting the error

Error Code : 1054
Unknown column 'calc_parts2.shortName' in 'where clause'


Answer : MySQL Query Help

Hi,

You can asign the Display and Value Members of the combo and the datagrid will do the match for you as long the field asigned to the comboboxcolum have values of the datasource asigned, like this:

        Dim dgvc As DataGridViewComboBoxColumn
        dgvc = CType( dgvRO.Columns("cboItemNo"), DataGridViewComboBoxColumn)
        dgvc.DataSource = YOUDATASOURCE
        dgvc.DisplayMember = "THE FIELD YOU WANT TO DISPLAY"
        dgvc.ValueMember = "THE FIELD THAT MATCH IN BOTH TABLES"

This should be before you load you datagrid.

Hope it helps,
Random Solutions  
 
programming4us programming4us