Re: Bound or unbound

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 03/03/04


Date: Wed, 3 Mar 2004 10:22:44 -0500

The .AddNew Method of the Binding Context will add a new record to the DB
"Maurice" <anonymous@discussions.microsoft.com> wrote in message
news:6483D2A4-8125-4C74-8C7E-7482ABDB5CC4@microsoft.com...
> Dear Cor,
>
> thanks for looking to my question. You're right, not all apps need a
database. I was asking this question because I thought maybe in .NET most
developers use unboud controls: I'm having a little problem and can't find a
clear solution for it.
>
> In .NET I created a form with bound controls (Access Database). I used a
dataset and followed examples to create a navigation using the Binding
Context. So far everything goes well.
> My question, how do I add a new record to the database AFTER the user
filled in the fields on the form. I can't find the solution. The problem is
that my database has some fields that are required before I can add the row
to the database.
>
> Do you know how to do this. How to display a new row in a form with bound
controls..
>
> Thx in advance, Maurice
>
>
>
> Hi Maurice,
>
> >> I was wondering what most of the designers in .NET create: bound
windows
> forms or unbound windows forms. The applications I've made in Access were
> all bound forms but what is the best choice in .NET? And why..
>
> I think this is another question in dotnet, it is not always necessary
that
> an application use a database. When you use the dataadapter and things
like
> that, you need a form to use it, but if you wish, you can than bring it to
a
> seperate class.
>
> But you can also use databases without the wizards and then the data will
> mostly be in another class than the forms.
>
> When you use databases it is good to look at all types of databinding.
> It is very extended in Visual.studio.net.
>
> I hope this was more or less your question?
>
> Cor
>



Relevant Pages

  • RE: Error Message in a Form
    ... "Maurice" wrote: ... Go to the [Database tools] ribbon ... In the VBA screen click on tools and choose [references] ... You will probably see one reference with MISSING in front of it ...
    (microsoft.public.access.forms)
  • RE: Startup Form on New Record
    ... Thank you so much for your clear instructions, Maurice. ... Maurice Ausum ... page and that does work (opens in record 28 of 28). ... If I read your post carefully it looks like you are opening the database by ...
    (microsoft.public.access.forms)
  • Re: TADO vs. TQuery
    ... Maurice is absolutely right. ... database, query plan, not selecting unused columns, indexes, size of result ... on the database and in your coding techniques.. ...
    (borland.public.delphi.database.ado)
  • Re: Refresh DataSet - please Help Me :-(
    ... >And than to get more help it probably better to ask this in the newsgroup ... Firstly let me say I agree with Cor, the best approach to a problem ... the usual approach to refreshing a dataset is to have one ... Update the database with any changes made. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Syntax error (missing operator) when delete with Commandbuider
    ... I was already using AcceptChanges etc on the second copy database but not on ... Hawkmoth ... "Cor Ligthert" wrote: ...
    (microsoft.public.dotnet.framework.adonet)