Information générale
Catégorie:
Codage, syntaxe et commandes
The problem i'm having is populating the text boxes when I click on a cell in the grid. It seems to work fine the first time, but when I click on a different date on the OLEcontrol(calendar) and the grid is updated with new information, the click on the grid doesn't populate the text boxes. However, the correct record is being pointed to by the record pointer. Could I use recno() somehow to populate the text boxes?
Within the calendar, I use an SQL query, which is stored using the code
"INTO CURSOR tempTable NOFILTER", I then set the recordsourcetype for the grid = 2, and the recordsourcetype = tempTable. This populates the grid with the correct information.
If this is still unclear i'll give more information and some of my code. I am only familiarising myself with Foxpro so i'm sorry if my problem seems easy!
Is there another way to populate the text boxes from clicking on a piece of information withing the grid? If the methods I am using are wrong, any suggestions would be welcomed. Thanks in advance.
Cheers,
Mick.
Précédent
Suivant
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