I have a table filled with the identification data of thousand of people (name, surname, phone number, address, ...). I have to assign a random name (name + surname) to each of them. How can I do it? thanks!
1) Create 2 new tables Firstname & Surname - each table should have 2 fields - ID (Integer = primary key) and Name (text)
2) Loop through your current people table and use this to populate the 2 new tables with first names and surnames
3) Loop through your people table again and for each record use the RANDOM function to generate 2 random numbers and use these 2 random numbers to GET a firstname and surname from the 2 new tables, concatenation the names and replace in your people table
1) Create 2 new tables Firstname & Surname - each table should have 2 fields - ID (Integer = primary key) and Name (text)
2) Loop through your current people table and use this to populate the 2 new tables with first names and surnames
3) Loop through your people table again and for each record use the RANDOM function to generate 2 random numbers and use these 2 random numbers to GET a firstname and surname from the 2 new tables, concatenation the names and replace in your people table
Answers
Then create a batch (report / Codeunit) which populate data in new fields based on concatenation of name and surname field.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Archerpoint India Pvt. Ltd,Chennai.
2) Loop through your current people table and use this to populate the 2 new tables with first names and surnames
3) Loop through your people table again and for each record use the RANDOM function to generate 2 random numbers and use these 2 random numbers to GET a firstname and surname from the 2 new tables, concatenation the names and replace in your people table