تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
ما هو حل رسالة data type mismatch in criteria expression اثناء البحث بين تاريخين
#1
[align=left][align=left][align=right][align=right][align=center][align=left]ما هو حل رسالة data type mismatch in criteria expression اثناء البحث بين تاريخين
جملة الادخال هي

Dim i As Integer

For i = 0 To DataGridView1.Rows.Count - 2
Dim id As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(0)
Dim item As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(1)
Dim itmnam As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(2)
Dim value1 As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(3)
Dim price As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(4)
Dim sum1 As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(5)
Dim disc As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(6)
Dim total1 As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(7)
Dim bdate As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(8)
Dim iNo As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(9)
Dim bbb As DataGridViewTextBoxCell = DataGridView1.Rows(i).Cells(10)
'MsgBox(bbb.Value)
Dim g As Integer = 0
g = (bbb.Value) - (value1.Value)
cn.open

Dim Cmd14 As New OleDbCommand("Insert into selltab values(" & id.Value & "," & item.Value & "," & bdate.Value & "," & value1.Value & "," & price.Value & "," & disc.Value & "," & sum1.Value & "," & total1.Value & "," & iNo.Value & ")", Cn)

الادخال عن طريق datagridview
و جملة البحث
dt.Clear()
Dim da As New OleDbDataAdapter("select * from selltab where Sell_date between '" & Format(DateTimePicker1.Value.Date, "MM/dd/yyyy") & "' AND '" & Format(DateTimePicker2.Value.Date, "MM/dd/yyyy") & "'", Cn)
da.Fill(dt)
If dt.Rows.Count > 0 Then
Me.DataGridView1.DataSource = dt
و عند da.Fill(dt) تظهر الرسالة data type mismatch in criteria expression
و لكم مني جزيل الشكر
الرد }}}
تم الشكر بواسطة:


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  conversion from string " insertinto table1(type'" integre as not vaild الحقوني يا رجا Medo84 2 1,223 10-01-21, 07:45 PM
آخر رد: 1nj
  [VB.NET] مشكله عند الحفظ على قاعدة بيانات باستخدام Data Source وقاعدة بيانات اكسس2007 coderarab 9 5,957 06-04-20, 12:12 AM
آخر رد: wadyreem
  [VB.NET] تعديل في data gird view وحفظه Hassan.syria 5 2,549 10-03-20, 03:06 PM
آخر رد: asemshahen5
  [VB.NET] Date & Time Error in mssql server data base & VB.net HazemOrasa 1 1,609 03-07-19, 01:03 PM
آخر رد: اسامه الهرماوي
  [VB.NET] رسالة خطأ عند الحذف أو تعديل بيانات جديدة #concurrency violation# sniperjawadino 11 4,048 28-05-19, 10:50 PM
آخر رد: sniperjawadino
  [VB.NET] البحث عن مسار مجلد ضمن قاعدة البيانات اكسس وفتحه من الفورم EMADSSS 1 2,275 21-02-19, 04:38 PM
آخر رد: elgokr
  [سؤال] تصفية Filter تاريخين في datagridview عبد الله 3 2,265 03-09-18, 10:27 PM
آخر رد: elgokr
  كيفية حفظ التعديل في Data Grid View مباشرا الى قاعدة البيانات اللورد محمود 1 4,363 02-08-18, 07:26 PM
آخر رد: سعود
  [VB.NET] الداتا غريد فيو Data Grid View QWERTU 3 4,168 25-07-18, 04:15 PM
آخر رد: elgokr
  [سؤال] رسالة خطأ لم افهمها محمد بن عطية 0 1,641 09-11-17, 06:52 PM
آخر رد: محمد بن عطية

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم