11-12-12, 11:20 PM
sajad كتب :السلام عليكم
PHP كود :
Dim t() As TextBox = {TextBox1, TextBox2, TextBox3}
For i = 0 To t.Length
t(i).Text = DataSet1.Tables("yourtable").Rows(i)("tablename").ToString()
Next
بالتوفيق ان شاءالله
جزاك الله خيرا اخي الفاضل على المساعده
انا جعلت الكود كله بهذا الشكل
PHP كود :
Dim saveinto As New OleDb.OleDbCommand
Dim constr As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source =" & Application.StartupPath & "\db.mdb"
Dim conn As New OleDb.OleDbConnection(constr)
Dim DataSet1 As New DataSet
Dim SQLstr As String
Dim i As Integer
SQLstr = "SELECT * From factor "
conn.Open()
Dim t() As TextBox = {TextBox1, TextBox2, TextBox3}
For i = 0 To t.Length
t(i).Text = DataSet1.Tables("factor").Rows(i)("factor_name").ToString()
Next
و لكن ظهر لي الخطأ التالي
PHP كود :
Object reference not set to an instance of an object.
مع العلم اسم الجدول factor و اسم الحقل factor_name

