|
|
#1 |
|
Hyperactive Member
Join Date: Oct 05
Posts: 256
![]() |
[2005] Setting table specs on a table I made in code
I want to create a datatable to hold test results from a testing program and I'm adding rows like this:
Dim NewRow As DataRow NewRow = tblUserAnswers.Rows.Add NewRow.Item(0) = m_intUserId etc which I'm not exactly sure is going to work anyway but how do I set the number of columns and their datatypes to match the Results table in the actual database so that I can send it to the database later (btw is there even a way to do that?) and it won't give me a bunch of datatype mismatch errors or number of columns errors or something. Or do I even have to do that at all?
__________________
I tried to end process on Visual Studio 2005 but PETA stopped me saying it's smart enough to be a living creature
|
|
|
|
|
|
#2 |
|
.NUT
Join Date: May 05
Location: Sydney, Australia
Posts: 54,913
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Re: [2005] Setting table specs on a table I made in code
VB Code:
__________________
![]() 2007, 2008, 2009, 2010 Why is my data not saved to my database? | Communicating between multiple forms | MSDN Data Walkthroughs MSDN "How Do I?" Videos: VB | C# VBForums Database Development FAQ My CodeBank Submissions: VB | C# (ForumAccount has translated some of my VB submissions to C#) My Blog: Defining and Raising Custom Events | Manipulating GDI+ Drawings | Using Parameters in ADO.NET |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|