Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Field Id can't be modified

Posted on 2009-07-15
3
424 Views
Last Modified: 2013-11-23
I have a database with Id (auto_increment), Songtitle, Genre and Songtext.

The app that I created uses 2 ADOQueries, 1 master and the other just to copy temporary records to it from the master.

When I try this, but clicking a button, I get the message Field 'Id' can't be modified.

I use the field Id for numbers, because of its auto_increment (can't be used twice in the same table, otherwise I would use number).

Is there a solution for this?
0
Comment
Question by:delphiuser2009
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
FactorB earned 50 total points
ID: 24863951
Nope, you shouldn't modify autoincrement field.
As the name says it increments by itself.
If you still want to modify it, try to change it in table 2 in type number or double...

Regards,
B.
0
 

Author Comment

by:delphiuser2009
ID: 24864101
wow, thanks man, that worked.
I didnt think of that being so easy.
0
 
LVL 6

Expert Comment

by:FactorB
ID: 24864609
It is always easier when you try to find a solution for someone's problem,
it is much different when you try to do the same for yourself. :)

B.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question