planix
Technical User
- Dec 3, 2002
- 22
The Background: I have a table which I am using as the basis for an interactive survey. The table holds the Question Number, the Question Content, where to go if the answer is positive, where to go if the answer is negative, and which response format should be used.
The table is accessed in code which seeks records by the Question number and sets up a survey display form using the content and response format fields. A global variable takes the where to go field(s) and moves to a next question number depending on some decision rules related to the answer to the question.
The problem: I had all this working well until I decided I needed to add another question. For some stupid reason (forgot evrything I knew, doh!) I wanted to insert this question in sequence. So I cut all the records, inserted a new record, filled in the fields, and then pasted all the other records back in. Why this is dumb is that my search sequence in code just steps through the table until it finds the right question number- they don't need to be in sequence. Also... it broke my application.
I have obviously altered some fundamental property in the table in relation to the order of records. Because now when I come to the question that I added I get an error indicating that the record does not exist.
I have this vague idea that I know what is wrong but I really don't know how to fix it. It has something to do with how Access actually stores table data not being in the sort order displayed. Something like that.
Does anyone know what I have changed in the record storeage which might lead to this problem? If so, any ideas on how I might fix it.
The table is accessed in code which seeks records by the Question number and sets up a survey display form using the content and response format fields. A global variable takes the where to go field(s) and moves to a next question number depending on some decision rules related to the answer to the question.
The problem: I had all this working well until I decided I needed to add another question. For some stupid reason (forgot evrything I knew, doh!) I wanted to insert this question in sequence. So I cut all the records, inserted a new record, filled in the fields, and then pasted all the other records back in. Why this is dumb is that my search sequence in code just steps through the table until it finds the right question number- they don't need to be in sequence. Also... it broke my application.
I have obviously altered some fundamental property in the table in relation to the order of records. Because now when I come to the question that I added I get an error indicating that the record does not exist.
I have this vague idea that I know what is wrong but I really don't know how to fix it. It has something to do with how Access actually stores table data not being in the sort order displayed. Something like that.
Does anyone know what I have changed in the record storeage which might lead to this problem? If so, any ideas on how I might fix it.