Stephen K Posted March 21, 2005 Posted March 21, 2005 I have a db with fields student_id (unique serial), names...etc, time_out_id (unique serial), behaviour (with text about the particular behaviour that caused time out), letter_home_number. In another layout I have a form letter sent to parents that includes the field: letter_home_number. What I can't work out is how to automate the letter_home_number...ie on first time out the letter number is 1, 2nd time out 2 and so on. I think I have to make the letter_home_number a calculation-count field but I'm not sure if I'm on the right track... Or do I need to have another field for each time_out record: number=1...do a find script then count the number or records to insert/merge into the form letter... Or do I have to make it a sub-summary or summary field... Or...can I be pointed to a reference TIA Stephen K
Stephen K Posted March 21, 2005 Author Posted March 21, 2005 I have a db with fields student_id (unique serial), names...etc, time_out_id (unique serial), behaviour (with text about the particular behaviour that caused time out), letter_home_number. In another layout I have a form letter sent to parents that includes the field: letter_home_number. What I can't work out is how to automate the letter_home_number...ie on first time out the letter number is 1, 2nd time out 2 and so on. I think I have to make the letter_home_number a calculation-count field but I'm not sure if I'm on the right track... Or do I need to have another field for each time_out record: number=1...do a find script then count the number or records to insert/merge into the form letter... Or do I have to make it a sub-summary or summary field... Or...can I be pointed to a reference TIA Stephen K
spb Posted March 21, 2005 Posted March 21, 2005 You could make a button that runs ascript taking you to the layout for printing the letter_home. Besides going to the layout, the script will increment the letter_home_number as: Go To Layout (Letter Home) Set Field [ letter_home_number, letter_home_number + 1] Every time the letter-home layout is visited (and, presumably, printed & mailed), letter_home_number will go up by one. Steve Brown
spb Posted March 21, 2005 Posted March 21, 2005 You could make a button that runs ascript taking you to the layout for printing the letter_home. Besides going to the layout, the script will increment the letter_home_number as: Go To Layout (Letter Home) Set Field [ letter_home_number, letter_home_number + 1] Every time the letter-home layout is visited (and, presumably, printed & mailed), letter_home_number will go up by one. Steve Brown
Recommended Posts
This topic is 7255 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now