Hi Phorum,
On a form based on a 1-many set where the parent is members and the
child is dues (in an embedded browse). I have the following script on
the onkey event of the form.
if a_user.key.value = "{F3}"
a_user.key.handled=.t.
IF a_user.key.event = "down"
f=parentform.active()
if f="browse1" then
parentform:soc_sec.activate()
parentform.fetch_next()
else
Browse1.Activate()
browse1.new_record()
browse1:datepaid.activate()
end if
end if
end if
The intent of this script is to ease the monthly dues data to be entered. Each record gets 6 entries and more than 90% of the records, 4 of the 6 entries is the same. The button that brings up this form stores 4 variables for the ones that seldom change for a given month. What I expect of this script is for it to put focus on soc_sec in the parent form when it is entered. Next by presssing enter or
tab, it would enter the 4 variables appropriately in the child table, next the user would type in the other 2 fields. Then after pressing enter again it would place focus in the parent , fetch the next record and the process would be repeated. This seems easy enough to accomplish.
What it doesn't do is place focus on soc_sec in the parent when it is activated nor does it place focus on datepaid of the child table.
Maybe I am asking for miracles,
efs
On a form based on a 1-many set where the parent is members and the
child is dues (in an embedded browse). I have the following script on
the onkey event of the form.
if a_user.key.value = "{F3}"
a_user.key.handled=.t.
IF a_user.key.event = "down"
f=parentform.active()
if f="browse1" then
parentform:soc_sec.activate()
parentform.fetch_next()
else
Browse1.Activate()
browse1.new_record()
browse1:datepaid.activate()
end if
end if
end if
The intent of this script is to ease the monthly dues data to be entered. Each record gets 6 entries and more than 90% of the records, 4 of the 6 entries is the same. The button that brings up this form stores 4 variables for the ones that seldom change for a given month. What I expect of this script is for it to put focus on soc_sec in the parent form when it is entered. Next by presssing enter or
tab, it would enter the 4 variables appropriately in the child table, next the user would type in the other 2 fields. Then after pressing enter again it would place focus in the parent , fetch the next record and the process would be repeated. This seems easy enough to accomplish.
What it doesn't do is place focus on soc_sec in the parent when it is activated nor does it place focus on datepaid of the child table.
Maybe I am asking for miracles,
efs
Comment