General information
Category:
Forms & Form designer
>>In the dataenvironment of my form I have a Parent and a child table. On my form I want to be able enter information into both tables. In the load method of my form I set the buffering for both tables and I do an append blank for both tables. The problem I have is that when the form comes up somehow the record pointer in my child table is advancing 1 which automatically writes the buffered data to disk. If anyone has any suggestions I'd appreciate it because I'm starting to pull my hair out over this.
>>
>>Mark A. Struck
>
>Mark, are you using the grid properties to set a relationship between parent and child tables? If so, then this is probably your culprit. When the internal relation is set the record pointer is re-set to the first matching child record, not the blank record. Try putting your append blank code in the init so it fires AFTER all the other setting-up code.
>
>HTH
>Barbara
Hi Barbara,
Actually I'm not using a grid in my form and I already have my cursorsetprop's and append blank's in the init method of my form. Also, the record pointer is moving after the init method and it's only advancing 1 record. Thanks for your suggestions though.
Mark A. Struck
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only