Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / July 2003



Tip: Looking for answers? Try searching our database.

AddNew

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Gaffey - 30 Jul 2003 22:53 GMT
Sometimes when I use AddNew the added record is not at
the end of the Access table. It may appear at the
beginning or anywhere. How do I ensure the added recorded
is always appended to the end of the recordset/ Access
table?
Nelson Lee - 30 Jul 2003 23:36 GMT
Create an autonumber field in the table. If you do not already have a
primary key in the table, make this you primary key or else order/sort by
this field.

Nelson

> Sometimes when I use AddNew the added record is not at
> the end of the Access table. It may appear at the
> beginning or anywhere. How do I ensure the added recorded
> is always appended to the end of the recordset/ Access
> table?
Ben - 31 Jul 2003 00:39 GMT
An important question here is 'Who cares?'. In a RDBMS
the position of a record in a database table is
_absolutely_ irrelevant. If you are relying on the
position in the table for _anything_ you are going to
have some serious headaches.
If you don't have a primary key, then go with the
autonumber/identity field, but please DON'T count on the
position in the table. If you do have a primary key set
then that is why you're new records are not at the end of
the table, the primary key value doesn't fall at the end,
so Access puts it where it belongs. If you need a
speciific record filter or query for it.
HTH
Ben
>-----Original Message-----
>Create an autonumber field in the table. If you do not already have a
[quoted text clipped - 10 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.