Re: Updates to an Access Database
From: Kenny Young (Kenny_at_68gt.sytes.net)
Date: 02/06/05
- Next message: Jon Paskett: "Server Explorer giving error when I click Crystal Services"
- Previous message: ajk: "Re: Updates to an Access Database"
- In reply to: ajk: "Re: Updates to an Access Database"
- Next in thread: Ed Warren: "Re: Updates to an Access Database"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 6 Feb 2005 14:24:22 -0500
OK I have added the following and it still wont save data changes to the
database.
Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdSave.Click
OleDbDataAdapter1.Update(DsDataSet1, "Variables")
DsDataSet1.Variables.AcceptChanges()
End Sub
"ajk pc.nu>" <gandalf<at> wrote in message
news:o1ma01l8k2bvokki3uschf8157h6rrji96@4ax.com...
> On Sat, 5 Feb 2005 09:10:58 -0500, "Kenny Young"
> <Kenny@68gt.sytes.net> wrote:
>
>> I am working on a program that access data from a MS Access database.
>> I have the Connector (OleDbConnection1), the Dataadapter
>> (OleDbDataAdapter1) and the DataSet (DsDataSet1) all in place. All the
>> text boxes DataBindings have been done. I use the following code to
>> populate the form:
>> Private Sub bFill_Click(ByVal sender As System.Object, ByVal e As
>> System.EventArgs) Handles bFill.Click
>> Me.DsDataSet1.Clear()
>> Me.OleDbDataAdapter1.Fill(Me.DsDataSet1)
>> End Sub
>> Now the problem. Changes to the data aren't being saved to the
>> database and no error is generated. I am using the following code:
>>
>> Private Sub cmdSave_Click(ByVal sender As System.Object, ByVal e As
>> System.EventArgs) Handles cmdSave.Click
>> OleDbDataAdapter1.Update(DsDataSet1)
>> End Sub
>>I have also tried the following to no avail:
>>OleDbDataAdapter1.Update(DsDataSet1, "Variables")
>>
>>Any help is greatly appreciated.
>>
>>Thanks
>>
>>Kenny Young
>
> have you done commit?
> --
> "Those are my principles. If you don't like them I have others."
> Groucho Marx.
- Next message: Jon Paskett: "Server Explorer giving error when I click Crystal Services"
- Previous message: ajk: "Re: Updates to an Access Database"
- In reply to: ajk: "Re: Updates to an Access Database"
- Next in thread: Ed Warren: "Re: Updates to an Access Database"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|