Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Codage, syntaxe et commandes
Hi Walter.Thanks for your reply
I use a command button's click event to append a record. Focus may be on the grid, the user then clicks the add button, and a record is appended, and then I set focus back to the grid.
Howver, no matter how hard I try on my set of files, I cannot replicate the problem.
>Gerard,
>
>By any chance is there some code in the VALID method in the control that has focus at the time you're doing the append ??
>
>If so, that might be the cause of the problem. I've encountered this many times before. The solution I've found is to get the focus OFF the grid when appending a record.
>
>Walter,
>
>
>>Hi.
>>I have been getting this message, quite randomly.
>>Error code is Select TRN
>>TRN is a Rewdwrite cursor and the record source for a Grid.
>>I cannot see anywhere in the code where I try to access the file if its at eof as all I am doing is appending records, and modifying them
>>
>>I have a recollection that this sort of thing came up randomly before and I had to code around it.
>>
>>Any help appreciated
>>Regards,
>>Gerard
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