I am having a problem with an autoincrement field in db2k. Here's the scenarios:
Scenario 1:
1. I created a .dbf with 4 normal and 1 autoincrement field.
2. I then appended a .csv file to it.
3. The autoinc field seemed to work as each record was appended having an incremental value starting with 1.
4. I amnually appended a record, closed the database, and reopened it.
5. The new record was at the end as it should be but the value of the autoinc field was 1.
Scenario 2:
Since #1 failed, I tried:
1. Created a table with no autoinc field
2. Append the .csv file
3. modified the table to have autoinc field
4. They all had incrementing values. Good so far.
5. Closed and reopened the table
6. Appended a record
7. Autoinc field value was 1
Scenario 3:
(This is what started the whole thing)
1. Created a table with autoincrement field.
2. Wrote a web site that performs queries, updated, deletes, and adds
3. queries, updates, and deletes work fine
4. Appended new records using the beginappend() method
5. Appended record's autoincrement field value is 1
6. Tried to perform a query that should have found this new record but it didn't
Anyone know what's up? Are all these problems related??
Jerry Scannell
JScannell1@Home
Scenario 1:
1. I created a .dbf with 4 normal and 1 autoincrement field.
2. I then appended a .csv file to it.
3. The autoinc field seemed to work as each record was appended having an incremental value starting with 1.
4. I amnually appended a record, closed the database, and reopened it.
5. The new record was at the end as it should be but the value of the autoinc field was 1.
Scenario 2:
Since #1 failed, I tried:
1. Created a table with no autoinc field
2. Append the .csv file
3. modified the table to have autoinc field
4. They all had incrementing values. Good so far.
5. Closed and reopened the table
6. Appended a record
7. Autoinc field value was 1
Scenario 3:
(This is what started the whole thing)
1. Created a table with autoincrement field.
2. Wrote a web site that performs queries, updated, deletes, and adds
3. queries, updates, and deletes work fine
4. Appended new records using the beginappend() method
5. Appended record's autoincrement field value is 1
6. Tried to perform a query that should have found this new record but it didn't
Anyone know what's up? Are all these problems related??
Jerry Scannell
JScannell1@Home