Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I am haing trouble with data selected on a form not agreeing with the record. I use Select myTable then Seek(myNumber) Order myindex in the init event of the form. Then for example I chose an option button that is bound to a field. I close the form. Open it up again and the wrong option button is selected. It's like the record pointer is moving after the form is opened even though the rest of the data on the form looks like it's on the right record. I believe this is the same problem I stated on an earlier post today which I have not gotten a response. I really need some help on this.
Are you certain that the SEEK is finding the correct record? Just for debugging, maybe you could put in a GOTO and go to a record that has a known value. Then, when you close the form, display the current record number. If the record number is different than the value used in the initial GOTO, then something is definitely moving the record pointer somewhere between INIT and closing the form.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement