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!

A extra field in a subfile to select

Status
Not open for further replies.

amacfantasy

Programmer
Feb 6, 2007
3
US
Ok im making a interactive program where you enter in a last name then next page has a subfile list of people that will be from that name down in ABC order. Anyways thats not important but on that subfile SFL area i have to have a option field that will be by all 10 of the names (Being the page can hold up to 10 rows) And when you put a X in that blank and press enter it will bring up more detailed information on that person phone number address ect. But im confused on how the made up field that i named option and the names can be connected? The last and first name are put on from a physical files &1 &2 you know like that. I Would use a Chain right but i cant chain somthing to itself like Chain LastName CustFile ---- being that last is the last name in the custfile so what do i do?
 
ohh i may have figured it out tell me if im wrong on this one would i used the relative record number in the chain?

READC RECRD
DOW NOT %EOF
CHAIN RRN Custfile (example)
IF %FOUND(Custfile)
EXFMT FMTwith-more-details
 
Place a hidden field in the subfile. The hidden field can contain the customer number.
Below is an example definition of a hidden field in a subfile record.

0001.20 A SFDIFF 9Y 0H

T. Bishop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top