PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?TWF1cmljZQ==?=
Guest
Posts: n/a
 
      16th Mar 2004
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: adding a new record and saving it, moving to next, previous record using a form in Access 2007 John W. Vinson Microsoft Access 1 24th Jun 2010 11:03 PM
In Access 2003 what is the short cut for adding a new record ? Mimig Microsoft Access 1 12th May 2009 10:57 PM
Error on adding a record to an Access Database. Dustin Wilson Microsoft ADO .NET 13 16th Aug 2005 02:51 PM
adding photo's to an access record =?Utf-8?B?Q2hyaXM=?= Microsoft Access External Data 1 3rd Jun 2005 12:01 AM
Adding a new record to a query in access project Chris Microsoft Access Queries 1 31st Jul 2004 03:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:03 AM.