تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
كود الاستعلام فيه مشكلة
#2
جرب
كود :
Try
           (cmd = New MySqlCommand("select pro_name,price_q from project where pro_cod='" & Textpro.Text & "' , con
           con.Open()
           Dim dr As MySqlDataReader = cmd.ExecuteReader
           dr.Read()
           If dr.HasRows Then
               Textpro.Text = dr(0)
               Textprice.Text = dr(0)
               Textnum.Focus()

           Else
               MsgBox("هذا المنتج غير  موجود في قائمة المنتجات")
               Textpro.Clear()
               Textnum.Clear()
               Textprice.Clear()
               Textpricetak.Clear()
               Textpro.Focus()

           End If
           dr.Close()
           con.Close()


       Catch ex As Exception
           MsgBox(ex.Message)
       End Try
الرد }}}
تم الشكر بواسطة: فراس الغزي , فراس الغزي


الردود في هذا الموضوع
RE: كود الاستعلام فيه مشكلة - بواسطة ملهمـ - 03-05-18, 03:45 PM


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


يقوم بقرائة الموضوع: