27-12-18, 03:22 AM
(آخر تعديل لهذه المشاركة : 27-12-18, 03:23 AM {2} بواسطة new_programer.)
شكرا استاذ حريف برمجة
الكود شغال تمام لكن عند وضع شرط لم يعمل يظهر خطاء
دة الكود بعد التعديل عفوا خبرتى قليلة
Syntax error (missing operator) in query expression 'tbl_customers.cust_code not in ( select cust_code from tbl_paymint)where tbl_paymint.mmonth= @mmonth'.
دة الخطاء
الكود شغال تمام لكن عند وضع شرط لم يعمل يظهر خطاء
دة الكود بعد التعديل عفوا خبرتى قليلة
كود :
tb_table2.Clear()
Dim cmd As New OleDbCommand("select tbl_customers.cust_code, tbl_customers.cust_name from tbl_customers where tbl_customers.cust_code not in ( select cust_code from tbl_paymint)where tbl_paymint.mmonth= @mmonth", con)
cmd.Parameters.Add("@mmonth", OleDbType.VarChar).Value = txt_month.Text
con.Open()
tb_table2.Load(cmd.ExecuteReader)
dvg1.DataSource = tb_table2
con.Close()Syntax error (missing operator) in query expression 'tbl_customers.cust_code not in ( select cust_code from tbl_paymint)where tbl_paymint.mmonth= @mmonth'.
دة الخطاء

