بسم الله الرحمن الرحيم
اخوتي المبرمجين قمت بربط ثلاث شروط بعبارة sql
Dim cmd1 As New OleDbCommand("select * from main where trim(mm)=trim(textbox8.text) and trim(yy)=trim(textbox9.text) and trim(nn)= trim(combobox1.selecteditem)", con1)
If cmd1.ExecuteScalar <> Nothing Then
MsgBox(" انتبه ..تم ادخال بيانات هذا الحساب !!!")
con1.Close()
Exit Sub
End If
con1.Close()
وظهرت عندي رسالة الخطأ التالية
No value given for one or more required parameters.