Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Hi.
>
>I have a form with three tables in the dataenvironment. The form is primarily for editing the first of these three tables
>(cursor1). However, when I use my navigation buttons (picbtns2), it appears that the third table is selected instead
>of the first one. I have tried everything that I know, and am confused as to why this is happening. I have another
>form that works just fine. BTW, this particular table of financial transaction has a one to many relationship with
>the master table. I don't think that matters, but I mention it anyway.
>
>Thanks in advance.
>
>Fred E. Beaulieu
Fred,
Have a look at the code in the txtbtns.navigate method, [txtbtns is the parent of picbtns2] method and you will see a line something like
SELECT (THIS.nWorkArea)
this is where your problem is.
so in the gotfocus event of your picbtns2 you need something like
select("mycursor1")
this.nworkarea = select()
dodefault()
HTH
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