Solved

Field Id can't be modified

Posted on 2009-07-15
3
417 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now