PRB: APPEND BLANK on a Child Grid Does Not Display New RecordLast reviewed: October 18, 1996Article ID: Q141740 |
The information in this article applies to:
SYMPTOMSIn a one-to-many form, when you want your form to have the ability to add child records into the grid, you find that clicking the grid does not allow you to scroll beyond the last record. Adding a button that uses APPEND BLANK to add a new child record won't add a record to the grid.
CAUSEIn a one-to-many form the grid only displays related records -- records that have a key identical to the key of the parent. When you issue an APPEND BLANK command, the key field in the new record is blank and is therefore not displayed in the grid.
RESOLUTIONAfter issuing an APPEND BLANK command, use REPLACE to write a value to the key field. You can also use the INSERT command with the VALUES clause instead of APPEND BLANK. For example, remove the asterisk from the code in step 4 below, or use the command button in Step 5 to resolve the problem.
STATUSThis behavior is by design.
MORE INFORMATIONUse the following steps to create a one-to-many form with a command button that calls APPEND BLANK and a command button that calls INSERT.
Steps to Reproduce Behavior
REFERENCESFor more information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q138559 TITLE : How to Append Records to a Grid |
Additional reference words: 5.00 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |