Jane C
2008-02-24 09:38:16 UTC
I've got my code almost working but it's not putting the data into the database (and it's not giving me any errors either)
Here's the code.
Dim da As New FrameworkDataSetTableAdapters.ProjectsTableAdapter()
Dim projects As FrameworkDataSet.ProjectsDataTable = da.GetData()
Dim row As FrameworkDataSet.ProjectsRow
row = projects.NewProjectsRow()
row.projectName = "Missing-Auctions.com"
row.linkText = "Missing-Auctions.com"
row.url = "http://www.missing-auctions.com"
row.description = "Find misspelled eBay auctions"
row.keywords = "ebay typos, auction typos"
row.name = "Missing Auctions"
row.email = "info@missing-auctions.com"
projects.AddProjectsRow(row)
projects.AcceptChanges()
Note that there's a ProjectID column in the table as well which is the table key.
So, what am I doing wrong ?