Help me LOOP please.
if 'Column 1' = 'Static Site Data'.'Risks and Mitigation Costs per Site'.'Type Specific Risks'.'Risk List1' then 'Column 1' = 'Static Site Data'.'Risks and Mitigation Costs per Site'.'Type Specific Risks'.'Risk List1'
else
if 'Column 1' = 'Static Site Data'.'Risks and Mitigation Costs per Site'.'Site Specific Risks'.'Risk List1' then 'Column 1' = 'Static Site Data'.'Risks and Mitigation Costs per Site'.'Site Specific Risks'.'Risk List1'
I want to repeat this code over and over again in a loop until its true, then print it. I want the Risk List to increase by 1 each time. So from the code its Risk List1, I want it to be Risk List2, Risk List3, and so on, everytime it is looped until it matches.
7 replies
-
Can I ask why you are looping through this way to try and find something that matches? Is this a search function?
-
It's a tell tail sign that when you have fields called 'Risk List1','Risk List2', 'Risk List3' that you are using fields rather than records. Once you have your database normalised (split up into tables that are joined together correctly) then this task will become much, much easier.
Can you send over a copy of your database?
Thanks John
-
said:
Then Id like to make a report in another table. This table is called "Reports. I have a text fields in the reports table called Column 1, Column 2, Column 3. Column 1 has a string "1", Column 2 has a string "2", Column 3 has a string "9". If Column 1 has a string of "1", I would like to recall the details of Risk List 1., and so on.. in another formula field.In the table Risk List, what is the field name that you would use to search for the string "1" or "2", etc?
I can see many back and forths asking for field name and types. To help simplify things, can you upload a sample DB?
Content aside
- 1 yr agoLast active
- 7Replies
- 74Views
-
4
Following