NaderNouri Posted April 21, 2011 Posted April 21, 2011 Hi I need a script to let me set a value list field in a loop, search related records and save it as excel. I don't know how to write the script. any help? Nader
Vaughan Posted April 21, 2011 Posted April 21, 2011 ...set a value list field... Not sure what you mean by that. 1) a value list is just a list of values 2) fields are fields If you refer to a field that is formatted as a menu, list, check boxes or radio buttons, then it's still just a field. Just enter the value into it with the Set Field[] step. Say you have a check box field "active". To search for all records with the checkbox selected, search for the text "active" in it. If you want to search for the field unselected, search for empty "=".
NaderNouri Posted April 24, 2011 Author Posted April 24, 2011 Many thanks for reply, I think I explain my problem in a bad way. I have table with two field. 1- name and 2- date. anytime any nurse came to visit my grand mother, I enter his/her name and visited date in a record. at the end of the month i need a separate list of each nurse and the number of days that he or she visited my GM. I try to write a script to make the list and export them as excel file for each nurse in one loop. is it possible? thanks in advance
comment Posted April 24, 2011 Posted April 24, 2011 Do you have a another table for the nurses where each nurse has a unique record? It can get a bit complex without it.
NaderNouri Posted April 26, 2011 Author Posted April 26, 2011 No I don't have any other table. how could it help me and what design should it be? Thanks
Vaughan Posted April 26, 2011 Posted April 26, 2011 ... at the end of the month i need a separate list of each nurse and the number of days that he or she visited my GM. A summary report should do this, and it will be accurate as long as the nurse's names are entered consistently. No looping scripts necessary. Just find the date range of visits, then sort by nurse name and change to the report layout.
comment Posted April 26, 2011 Posted April 26, 2011 ... and export them as excel file for each nurse A summary report should do this Do go on, please.
NaderNouri Posted April 26, 2011 Author Posted April 26, 2011 Thank you so much guys, your suggestion opens a new door to solve many problems for me. I made a report layout which show exactly what I want, the only problem is how can I set the report for date range? kind regards
Aussie John Posted April 28, 2011 Posted April 28, 2011 Thank you so much guys, your suggestion opens a new door to solve many problems for me. I made a report layout which show exactly what I want, the only problem is how can I set the report for date range? kind regards Do a find by the date range - then do the report
Recommended Posts
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