Kamis, 26 Maret 2015

RE: [MS_AccessPros] existing consecutive numbered field to autonumber

 

Woo hoo!

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Thursday, March 26, 2015 7:48 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] existing consecutive numbered field to autonumber

 



Liz-

 

Yes, the numbers will retain their original values.

 

John Viescas, Author

Microsoft Access 2010 Inside Out

Microsoft Access 2007 Inside Out

Microsoft Access 2003 Inside Out

Building Microsoft Access Applications 

SQL Queries for Mere Mortals 

(Paris, France)

 

 

 

On Mar 26, 2015, at 3:26 PM, Liz Ravenwood liz_ravenwood@beaerospace.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

 

Okay John, this is what I remembered, but then I  panicked and thought that the old numbers would auto sequence in to be different numbers.

The numbers will retain their old values?

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Wednesday, March 25, 2015 4:24 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] existing consecutive numbered field to autonumber

 



Liz-

 

You can change an AutoNumber to Long Integer, but not vice-versa with data in the table.  It IS possible if you do this:

 

1) Copy the table to the clipboard

2) Paste Structure Only into a new table name

3) In the new table, change Long Integer to AutoNumber (legal if there's not data)

4) Paste again - paste the data into the new table

5) Delete the old table and rename the new

6) Rebuild any relationships

 

 

John Viescas, Author

Microsoft Access 2010 Inside Out

Microsoft Access 2007 Inside Out

Microsoft Access 2003 Inside Out

Building Microsoft Access Applications 

SQL Queries for Mere Mortals 

(Paris, France)

 

 

 

On Mar 26, 2015, at 12:04 AM, Liz Ravenwood liz_ravenwood@beaerospace.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:

 

Pros,

 

I have a table that for some antiquated and irrelevant-now reason the pk is a long integer that gets incremented programmatically.

 

Of course, it should be autonumber.

 

However, I have a bunch of data in the table and rely on that pk and need it to remain the same values.

 

How do I go about this again?  It seems like I've done this, but it might have been something akin but not exactly.

 

Respectfully,

Liz Ravenwood

Programmer / Analyst

B/E Aerospace | Super First Class Environments

 

1851 S Pantano Road | Tucson, Arizona 85710

Office +1.520.239.4808 |

beaerospace.com

Passion to Innovate. Power to Deliver

 



This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

 







This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

 






This email (and all attachments) is for the sole use of the intended recipient(s) and may contain privileged and/or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

__._,_.___

Posted by: Liz Ravenwood <Liz_Ravenwood@beaerospace.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (5)

.

__,_._,___

Tidak ada komentar:

Posting Komentar