keepingbusy
Programmer
Hi
I have a 2 page pageframe on a form. On that PageFrame is another PageFrame, also with 2 pages
On my form I have a command button with some commands that require the user to enter certain information before exiting the form (these are a couple of intials or a name showing who has updated the record).
What I am trying to achieve is if the user is on page 1 of PageFrame 1 and Page 2 of the second Pageframe (which is also called PageFrame1), I need the messagebox to show and once clicked Ok, Page 1 of the second PageFrame to be visible and focus set on the table field TxtUpdateby.
In my command button which by the way, is not on any of the PageFrames, I have the following:
I hope that makes sense and any guidance would be appreciated.
Thank you
Lee
Visual FoxPro Version 9
I have a 2 page pageframe on a form. On that PageFrame is another PageFrame, also with 2 pages
On my form I have a command button with some commands that require the user to enter certain information before exiting the form (these are a couple of intials or a name showing who has updated the record).
What I am trying to achieve is if the user is on page 1 of PageFrame 1 and Page 2 of the second Pageframe (which is also called PageFrame1), I need the messagebox to show and once clicked Ok, Page 1 of the second PageFrame to be visible and focus set on the table field TxtUpdateby.
In my command button which by the way, is not on any of the PageFrames, I have the following:
Code:
IF LEN(TRIM(UPDATEBY))<2
=MESSAGEBOX("Record updated by requires at least two initials"+ ;
SPACE(10),0+48+0,"System Message")
* THISFORM.PageFrame1.Page1.PageFrame1.Page1.ActivePage=1
THISFORM.PageFrame1.Page1.PageFrame1.Page1.TxtUpdateby.SetFocus()
RETURN 0
ENDIF
Thank you
Lee
Visual FoxPro Version 9