MySQL Forums
Forum List  »  Microsoft Access

Re: Solution What's Up with this #Deleted Thing
Posted by: Doug Lourey
Date: April 10, 2007 12:08PM

I create the [TimeStamp] field in Access and set the value initially to #01-01-2000#, and then again to [TimeStamp] + [RecordID]/86400, making it unique to the second. [RecordID] is an auto-number field. By dividing by 86400, the number of seconds in a day, each record has a unique TimeStamp value.
After exporting, I run a pass-through query to change the schema:
ALTER TABLE `mydatabase`.`mytable`
MODIFY COLUMN `RecordId` INTEGER NOT NULL AUTO_INCREMENT,
MODIFY COLUMN `TimeStamp` TIMESTAMP,
ADD PRIMARY KEY(`RecordId`),
ENGINE = MYISAM;
I think that I've avoided the #Deleted error because I export this way; and exporting is flawless. Even on tens of thousands of records in dozens of tables, performed over and over again.

However, I created another problem. If I have one or more of my Access/MySql applications open when I export and modify a "large" amount of data, the Access application may suffer from Run-time error '2486`. Not everytime, and not on all computers. I thought I had this problem solved, but it pops up during this high-activity session.

Options: ReplyQuote


Subject
Views
Written By
Posted
3128
September 06, 2005 07:32AM
1956
September 07, 2005 09:23AM
2048
September 09, 2005 07:46AM
2215
September 12, 2005 04:22PM
2055
September 13, 2005 01:37PM
2217
September 15, 2005 08:47AM
Re: Solution What's Up with this #Deleted Thing
2117
April 10, 2007 12:08PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.