Click here to Skip to main content
16,008,010 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Input string was not in a correct format Pin
Guffa10-Jan-06 21:08
Guffa10-Jan-06 21:08 
GeneralRe: Input string was not in a correct format Pin
kenn_rosie10-Jan-06 21:11
kenn_rosie10-Jan-06 21:11 
AnswerRe: Input string was not in a correct format Pin
Guffa10-Jan-06 22:15
Guffa10-Jan-06 22:15 
GeneralRe: Input string was not in a correct format Pin
kenn_rosie11-Jan-06 3:21
kenn_rosie11-Jan-06 3:21 
AnswerRe: Input string was not in a correct format Pin
Guffa11-Jan-06 22:06
Guffa11-Jan-06 22:06 
Questionreport generation Pin
_tasleem10-Jan-06 18:08
_tasleem10-Jan-06 18:08 
AnswerRe: report generation Pin
mr_debasishdas10-Jan-06 23:33
mr_debasishdas10-Jan-06 23:33 
QuestionSaving Data to Database Pin
shiroamachi10-Jan-06 17:38
shiroamachi10-Jan-06 17:38 
I'm sorry, again, for this noobs question.
I'm using Visual Stuido 2005 and I was trying to insert a data to database.

This is how I do it so far.

1. Set the dataset ( Ms. Access database ), which results are PlasmaDBDataSet and UserTableAdapter
2. From PlasmaDBDataSet, I drag UserID field to my windows form, resulting UserIDTextBox and UserBindingNavigator, and codes :
<br />
Public Class MasterUserForm<br />
<br />
    Private Sub UserBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UserBindingNavigatorSaveItem.Click<br />
<br />
        Me.Validate()<br />
        Me.UserBindingSource.EndEdit()<br />
        Me.UserTableAdapter.Update(Me.PlasmaDBDataSet.User)<br />
<br />
    End Sub<br />
<br />
    Private Sub MasterUserForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        'TODO: This line of code loads data into the 'PlasmaDBDataSet.User' table. You can move, or remove it, as needed.<br />
        Me.UserTableAdapter.Fill(Me.PlasmaDBDataSet.User)<br />
<br />
    End Sub<br />
End Class



When running the program, I already can add new records and also navigate through all the records. The problem is the records werent save to my access database. I've try to add Me.PlasmaDBDataset.AcceptChanges() but still dont work.

I do search the MSDN but it say nothing more or less, just like that. Please kindly help me with this.

Thank you





WiL
AnswerRe: Saving Data to Database Pin
Christian Graus10-Jan-06 17:39
protectorChristian Graus10-Jan-06 17:39 
GeneralRe: Saving Data to Database Pin
shiroamachi10-Jan-06 21:06
shiroamachi10-Jan-06 21:06 
QuestionAPI Pin
militiaware10-Jan-06 12:45
militiaware10-Jan-06 12:45 
AnswerRe: API Pin
Curtis Schlak.10-Jan-06 13:17
Curtis Schlak.10-Jan-06 13:17 
QuestionDLL Pin
militiaware10-Jan-06 12:42
militiaware10-Jan-06 12:42 
AnswerRe: DLL Pin
Christian Graus10-Jan-06 13:23
protectorChristian Graus10-Jan-06 13:23 
AnswerRe: DLL Pin
Dave Kreskowiak10-Jan-06 15:47
mveDave Kreskowiak10-Jan-06 15:47 
GeneralRe: DLL Pin
Ray Cassick10-Jan-06 18:32
Ray Cassick10-Jan-06 18:32 
GeneralRe: DLL Pin
Dave Kreskowiak11-Jan-06 1:01
mveDave Kreskowiak11-Jan-06 1:01 
GeneralRe: DLL Pin
militiaware11-Jan-06 4:40
militiaware11-Jan-06 4:40 
GeneralRe: DLL Pin
Dave Kreskowiak11-Jan-06 10:54
mveDave Kreskowiak11-Jan-06 10:54 
QuestionInvoking Excel from Access VBA code Pin
john john mackey10-Jan-06 10:35
john john mackey10-Jan-06 10:35 
AnswerRe: Invoking Excel from Access VBA code Pin
Garner T16-Jan-06 13:29
Garner T16-Jan-06 13:29 
GeneralRe: Invoking Excel from Access VBA code Pin
john john mackey16-Jan-06 18:49
john john mackey16-Jan-06 18:49 
QuestionRe: Invoking Excel from Access VBA code Pin
Garner T22-Jan-06 3:35
Garner T22-Jan-06 3:35 
QuestionTab to column 0 in a DataGrid Pin
dptalt10-Jan-06 6:20
dptalt10-Jan-06 6:20 
QuestionDisplay Values in an Excel Worksheet Pin
directred10-Jan-06 5:17
directred10-Jan-06 5:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.