dbTalk Databases Forums  

Convering from Access97 to Access2010

comp.databases.ms-access comp.databases.ms-access


Discuss Convering from Access97 to Access2010 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
paii, Ron
 
Posts: n/a

Default Convering from Access97 to Access2010 - 07-19-2010 , 09:44 AM






I am converting a Access97 front end to Acess2010, the back end is Access97.
I get the following error when attempting to add a record to one of the
linked tables. Other parts of the code adding records work. I have tried
Compact/Repair on both the FE and BE. and started a blank DB and imported
the FE. Removing indexes have not helped. tblSalesActivity is an auxiliary
table, the primary table is accepting the new ID.

Error
The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship.
Change the data in the field or fields that contain duplicate data, remove
the index, or redefine the index to permit duplicate entries and try again.

This is the query using DB.Execute. It works if run in the Backend under
A97.

INSERT INTO tblSalesActivity ( [Quote ID] ) SELECT "Q11828" AS ID;

This is the Table, it is not have a relationship with another table.
tblSalesActivity
Quote ID: Text 7: Primary Key
DateF: Date/Time
DateD: Date/Time
FollowUP : Text 50: Duplicates OK
Status : Text 255
PMName : Text 50
SalesActivity Yes/No

Reply With Quote
  #2  
Old   
M Skabialka
 
Posts: n/a

Default Re: Convering from Access97 to Access2010 - 07-20-2010 , 08:39 AM






Is QuoteID of Q11828 already in tblSalesActivity?
Is FollowUP a required field?

"paii, Ron" <none (AT) no (DOT) com> wrote

Quote:
I am converting a Access97 front end to Acess2010, the back end is
Access97.
I get the following error when attempting to add a record to one of the
linked tables. Other parts of the code adding records work. I have tried
Compact/Repair on both the FE and BE. and started a blank DB and imported
the FE. Removing indexes have not helped. tblSalesActivity is an auxiliary
table, the primary table is accepting the new ID.

Error
The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship.
Change the data in the field or fields that contain duplicate data, remove
the index, or redefine the index to permit duplicate entries and try
again.

This is the query using DB.Execute. It works if run in the Backend under
A97.

INSERT INTO tblSalesActivity ( [Quote ID] ) SELECT "Q11828" AS ID;

This is the Table, it is not have a relationship with another table.
tblSalesActivity
Quote ID: Text 7: Primary Key
DateF: Date/Time
DateD: Date/Time
FollowUP : Text 50: Duplicates OK
Status : Text 255
PMName : Text 50
SalesActivity Yes/No



--- news://freenews.netfront.net/ - complaints: news (AT) netfront (DOT) net ---

Reply With Quote
  #3  
Old   
paii, Ron
 
Posts: n/a

Default Re: Convering from Access97 to Access2010 - 07-20-2010 , 12:50 PM



Q11828 is not in the table, I have tried other values.

FollowUP is not required

"M Skabialka" <mskabialka (AT) NOSPAMdrc (DOT) com> wrote

Quote:
Is QuoteID of Q11828 already in tblSalesActivity?
Is FollowUP a required field?

"paii, Ron" <none (AT) no (DOT) com> wrote in message
news:i21ocm$i8q$1 (AT) news (DOT) eternal-september.org...
I am converting a Access97 front end to Acess2010, the back end is
Access97.
I get the following error when attempting to add a record to one of the
linked tables. Other parts of the code adding records work. I have tried
Compact/Repair on both the FE and BE. and started a blank DB and
imported
the FE. Removing indexes have not helped. tblSalesActivity is an
auxiliary
table, the primary table is accepting the new ID.

Error
The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or
relationship.
Change the data in the field or fields that contain duplicate data,
remove
the index, or redefine the index to permit duplicate entries and try
again.

This is the query using DB.Execute. It works if run in the Backend under
A97.

INSERT INTO tblSalesActivity ( [Quote ID] ) SELECT "Q11828" AS ID;

This is the Table, it is not have a relationship with another table.
tblSalesActivity
Quote ID: Text 7: Primary Key
DateF: Date/Time
DateD: Date/Time
FollowUP : Text 50: Duplicates OK
Status : Text 255
PMName : Text 50
SalesActivity Yes/No




--- news://freenews.netfront.net/ - complaints: news (AT) netfront (DOT) net ---

Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.