PRB: "Record is out of Range" w/ Form from One-to-Many WizardID: Q135751 The information in this article applies to:
SYMPTOMSWhen using a form created with the One-to-Many Wizard, you may receive the error "Record out of Range." This error occurs if a new record is added to both the parent and child tables.
CAUSEThe error occurs because the record pointer in the child table does appear to be in the correct location when the command THISFORM.REFRESH is executed.
RESOLUTIONRefresh the form before adding the record in the second table by adding this line of code:
Code SampleThe following code from the Wizstyle.vcx is called by the form. This code is located in the txtbtns class under the addcmd.click event.
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe error message may also be received when using a form not created by the Form Wizard but the workaround is the same.
Steps to Reproduce Behavior1. Create a one-to-many form using the Form Wizard. 2. Add the parent table and select all the fields. 3. Add the child table and select all the fields. 4. Click the Finish button. 5. Save the form. 6. Run the form you just created. 7. Click the Add button. 8. Click the Add record to both button. 9. Enter a key value. 10. Click the Add button. 11. A message box containing the following message appears:
Additional reference words: 3.00 VFoxWin one to many one-to-many
KBCategory: kbtool kbcode kbprb
KBSubcategory: FxtoolWizscreen
|
Last Reviewed: September 22, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |