473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

autonumber->number of key

Hi I have a table STUDENTS with key (autonumber) StudentId.
Studentid is a lookup column in other tables and forms
I want to make it number. When I try, I get "you can't change the data
type or field size of this field; it is part of one or more
relationships"
A way I thought of to bypass this is :
1. delete the table and thus all the relationships
2. paste the table from a backup of the .mdb I have
3. change the type

Now there are 2 issues:
A. I think the relationships do not hold anymore. I infer that because
if i try to delete the table once more, it does not tell me that its
relationships will be deleted.

B. Also, if I rename the table, it is not renamed in all queries, and
lookup columns it is used.

About B, I thought to open all queries and tables and just save them so
that "auto-rename" will work when I want to rename the table.

I thought to do the same for A, but the relationships are still not
recreated (because if I try to delete the table I get no warning).

To cut the long story short, is there a way to make this field from
autonumber->number and retain all relationships and the "auto-rename"
feature ?

Nov 13 '05 #1
1 1378
"interuser" <in*******@hotmail.com> wrote
Hi I have a table STUDENTS with key (autonumber) StudentId.
Studentid is a lookup column in other tables and forms
I want to make it number. When I try, I get "you can't change the data
type or field size of this field; it is part of one or more
relationships" [snip] Now there are 2 issues:
A. I think the relationships do not hold anymore. I infer that because
if i try to delete the table once more, it does not tell me that its
relationships will be deleted.

B. Also, if I rename the table, it is not renamed in all queries, and
lookup columns it is used. [cutting long story short] To cut the long story short, is there a way to make this field from
autonumber->number and retain all relationships and the "auto-rename"
feature ?


It sounds like you have deliberately or accidentally deleted some but not
all of the relationships that table STUDENTS participates in.

1. In the Relationships Window, go through the entire list of tables and
show all of them. Make sure you don't miss any.

2. Delete any relationships to table STUDENTS.

3. Change the field type from number to Long

4. Reconnect the relationships.
Darryl Kerkeslager
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dalan | last post by:
I have created a table and form for allowing the input of a unique customer number (not an ID autonumber number) which a customer would enter once after installing the database. I'm using DLookup...
33
by: Lee C. | last post by:
I'm finding this to be extremely difficult to set up. I understand that Access won't manage the primary key and the cascade updates for a table. Fine. I tried changing the PK type to number and...
17
by: Alan Carter | last post by:
http://www.mvps.org/access/tencommandments.htm Thou shalt not use Autonumber if the field is meant to have meaning for thy users. Why? Alan
35
by: Traci | last post by:
If I have a table with an autonumber primary key and 100 records and I delete the last 50 records, the next record added would have a primary key of 101. Is there any way to have the primary key...
2
by: Apple | last post by:
Is there anyone can help me to solve this problem? Thank!
4
by: Vladislav | last post by:
My customers have reported strange behaviour of the locally used modules for running the register on stroke patients, specifically, adding new patient to the register. When analising a sample, I...
1
by: Scott269 | last post by:
So I've got an old MS Works database I imported into Access. I needed a primary key so I created a record number field that was just the record number I manually inserted when I entered it in the...
11
by: Alan Mailer | last post by:
A project I'm working on is going to use VB6 as a front end. The back end is going to be pre-existing MS Access 2002 database tables which already have records in them *but do not have any...
9
by: Tom_F | last post by:
To comp.databases.ms-access -- I just discovered, to my more than mild dismay, that some tables in my Microsoft Access 2003 database have duplicate numbers in the "AutoNumber" field. (Field...
2
by: krmcdonald | last post by:
I realize this has been covered a billion times, I've read them all and still can't get it. My table looks like this: DOCUMENT-SER.NO MC006343 -SST-24569 MC006344 -SST-27209 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.