General information
Category:
Forms & Form designer
>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
Previous
Next
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