0
Answer

Doing it all in Code - No Server Explorer

rbutch

rbutch

20y
1.6k
1
hey guys, for so long i've been using the Server Explorer to make the connection, config the adapter and the dataset (just like i was taught in school), but that's not really the real world. so, i started doing this all in code, which is great. but, it means that the table, columns arent really known until runtime. now, i have no problem filling a datagrid, HOWEVER a simple little for loop like: Dim info As String Dim i as Integer For i = 0 To (Ds.Cont_Payroll.Count - 1) info += (Ds.Cont_Payroll(i).Empl_id) & _ (Ds.ContPayroll(i).Reg_Hours) Next i messagebox.show(info.tostring) The error message is "Cont_Payroll" is not a member of System.Data.Dataset Should i have taken care of that when i called the dataset class. here's all i used: Dim Ds as New Dataset Do i need to assign something. Again, this was so easy When using the Server Explorer thanks rik