Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing variables

Status
Not open for further replies.

wswain

Technical User
Nov 1, 2003
21
US
Does anybody know how to pass a variable from one form to another. On the first form I am at a specific record number. Then I need to enter child table data, I use a push button to open a data entry form for the child table.

When I go to my child table form it defaults to the end.

I'd like to pass the record number of the first form to the second form and clear the entry fields to accept new data of a "one to many" relationship without the user having to remember which record number they were on and manually enter it.
 
Check out the writeEnvironmentString() example. It should serve in this instance.

Mac :)

"There are only 10 kinds of people in this world... those who understand binary and those who don't"

langley_mckelvy@cd4.co.harris.tx.us
 
wswain,

You can also pass variables between forms using libraries. You can also move to the desired record in the data entry form when you open it. Something Like

var
f form
endvar

f.open("child form")
f.childTable.movetoRecord(record number)

Hope this helps
Perrin
 
Thanks, I'm gpoin to work the library feature and the other recommended solutions,

Bill Swain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top