Hi,
>I have a VB .NET application that is communicating properly with an
> Access DB. I have a slew of textbox controls bound to a dataset and
[quoted text clipped - 11 lines]
> Try
> OleDbDataAdapter1.Update(DsMyMonthlyIncome1)
If your update doesn't work only for the last edited field, then you need to
call CurrencyManager.EndCurrentEdit() before the Update. A CurrencyManager
can be obtained from the Form's BindingContext, eg.:
' Important: use the same DataSource and DataMember(exluding fieldname)
' as the ones you used to setup the bindings.
' If you used the designer to setup the bindings then:
' DataSource = DsMyMonthlyIncome1
' DataMember = "YourTableNameHere"
Dim cm As CurrencyManager
cm = DirectCast(BindingContext(DataSource, DataMember),CurrencyManager)
cm.EndCurrentEdit()
OleDbDataAdapter1.Update( DsMyMonthlyIncome1 )
If that doesn't help, then first check whether DataSet has changes before
doing the DataAdapter.Update:
Console.WriteLine( DsMyMonthlyIncome1.HasChanges() )
HTH,
Greetings
> Catch ex As Exception
> MsgBox(ex.ToString)
[quoted text clipped - 8 lines]
>
> I am using VS 2003.
pooba53 - 16 Jan 2007 20:23 GMT
Thanks, Bart!
That's what I needed. I wonder why my book didn't include this useful
bit of information. Probably because the example was using DataGrid,
which may not require a CurrencyManager.
Thanks again.
-Dan
> Hi,
>
[quoted text clipped - 48 lines]
> >
> > I am using VS 2003.
aaron.kempf@gmail.com - 16 Jan 2007 23:07 GMT
access is drag and drop; or insert autoform.
.NET is impractical and obsolete
-Aaron
> Hi,
>
[quoted text clipped - 48 lines]
> >
> > I am using VS 2003.
keep it in Access and use VBA forms
.NET is a failure
the framework isn't on ANYONES desktops.. and it shouldn't be because
it's just bloatware
Access / VBA is fast enough for anything that you need to do; using
.NET all it does is make things SLOWER
-Aaron
> I have a VB .NET application that is communicating properly with an
> Access DB. I have a slew of textbox controls bound to a dataset and
[quoted text clipped - 24 lines]
>
> I am using VS 2003.
pooba53 - 16 Jan 2007 19:46 GMT
Then it requires the user to own a copy of Access, which may not be the
case for who this software is being targeted to.
-Dan
> keep it in Access and use VBA forms
>
[quoted text clipped - 36 lines]
> >
> > I am using VS 2003.
aaron.kempf@gmail.com - 16 Jan 2007 23:06 GMT
Dan
it doesn't require jack sh.t and you're not subjected to DLL _HELL_ and
apps that take a half hour to launch
VB.net isn't ready for primetime; I heard that MS is going to kill
VB.net
-Aaron
> Then it requires the user to own a copy of Access, which may not be the
> case for who this software is being targeted to.
[quoted text clipped - 41 lines]
> > >
> > > I am using VS 2003.