PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET Access, VB.NET, ADO.NET, Adding record

Reply

Access, VB.NET, ADO.NET, Adding record

 
Thread Tools Rate Thread
Old 16-03-2004, 10:41 AM   #1
=?Utf-8?B?TWF1cmljZQ==?=
Guest
 
Posts: n/a
Default Access, VB.NET, ADO.NET, Adding record


I've been posting this question many times, thanks for the persons trying to help me but the solutions offered didn't work

I want to build an Acces like form. Application starts, user sees a form with bound controls. The user can navigate through the records
This is what I want to build but can't because it is obviously not possible in .NET

- User presses the button "New record
- The controls on the form become empt
- User fills in the field
- User presses the button "Save record
- Several checks will be done to see if user filled in correc
- Record is saved

The solutions given to me are all about the same

1. User presses button "New record", empty field
Me.txtName.Text = "
Me.txtLastname.Text = "

2. Let user fill in the field

3 Add record when user presses sav
Dim Row As DataRow = dataset.Tables(0).NewRow(
Row("Name") = Me.txtName.Tex
Row("Lastname") = Me.txtLastname.Tex
dataset.Tables(0).Rows.Add(Row

The problems is
I want like in Acces show the user an empty record. What I'm actually doing is empty the fields of the current record and let the user fill in the new values. When I save, the values of the original record will be overwritten.

Does anyone know how to build an Access-like form in .NET



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off