Steve-vfp9user
Programmer
Hi
I have several pages on a PageFrame on a form displaying tables in grids such as clients, expenses, hours worked to name a few.
When the forms loads it defaults to Page 1 on the PageFrame showing the client details.
When I click on Page 2 of the PageFrame that displays another grid with the expenses and so forth.
Everything works perfectly until you click on a row in a grid on let's say page2, then clicking back on Page1 when I try to close the form it is showing an error for example: SURNAME not found (which is a field in the client table)
I have error traps to ensure some information is entered for example:
I have added the following to the click event on Page1 of the Pageframe to see if that would focus on the table shown on the page:
I have left the Status Bar on so I can see that when I am clicking on each page and then clicking on a row or field within that row and returning to Page1 it's not changing back to the table I require.
I'm sorry if the explanation is long winded but it's the only way I can describe it.
Any suggestions please guys?
Thank you
Steve
I have several pages on a PageFrame on a form displaying tables in grids such as clients, expenses, hours worked to name a few.
When the forms loads it defaults to Page 1 on the PageFrame showing the client details.
When I click on Page 2 of the PageFrame that displays another grid with the expenses and so forth.
Everything works perfectly until you click on a row in a grid on let's say page2, then clicking back on Page1 when I try to close the form it is showing an error for example: SURNAME not found (which is a field in the client table)
I have error traps to ensure some information is entered for example:
Code:
IF EMPTY(SURNAME)
nmessage=MESSAGEBOX("Must enter a surname"0+364+0,"System Message")
thisform.pageframe1.page1.txtsurname.SetFocus
RETURN 0
ENDIF
I have added the following to the click event on Page1 of the Pageframe to see if that would focus on the table shown on the page:
Code:
thisform.pageframe1.page1.txtsurname.setfocus
I have left the Status Bar on so I can see that when I am clicking on each page and then clicking on a row or field within that row and returning to Page1 it's not changing back to the table I require.
I'm sorry if the explanation is long winded but it's the only way I can describe it.
Any suggestions please guys?
Thank you
Steve