تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[سؤال] خطأ
#1
السلام عليكم ورحمة الله وبركاته 
الاخوة في المنتدى ارجو الاجابة على سؤال
لدي هذا الكود في مشروعي لكن يظهر لي خطا فيه ولا اعرف تصحيحه 
الكود هو
PHP كود :
 Dim dtexp As New DataTable
        dtexp
.Columns.Add("name")
        dtexp.Columns.Add("date")
        dtexp.Columns.Add("Qty")
        For Each dr As DataGridViewRow In DGV.Rows
            Dim exp 
As Object
            
If dr.Cells(2).Value "" Then
                exp 
Nothing
            
Else
                exp Convert.ToDateTime(dr.Cells(2).Value)
                dtexp.Rows.Add(expdr.Cells(0).Valuedr.Cells(4).Value)
            End If
        Next
        Dim cmd 
As New SqlCommand
        cmd
.Connection con
        con
.Open()
        cmd.CommandText "Insert Into Expired_Date(name,date,Qty) select name,date,Qty from @dtexp"
        cmd.ExecuteNonQuery()
        con.Close()
        MsgBox("Done addition was successful"MsgBoxStyle.Information"successful"

مع العلم الخطأ يظهر على @dtexp
ارجو الاجابة
الرد }}}
تم الشكر بواسطة:


الردود في هذا الموضوع
خطأ - بواسطة Moham - 16-05-20, 04:53 PM
RE: خطأ - بواسطة Moham - 16-05-20, 06:14 PM
RE: خطأ - بواسطة khodor1985 - 16-05-20, 09:39 PM

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


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