HampasLOUpa Posted January 15, 2019 Report Share Posted January 15, 2019 I'm planning to create some sort of a randomizer app. I want my DataPage to randomly select a name from a field in my table. Any idea to do this? Quote Link to comment Share on other sites More sharing options...
0 AnchovyXL Posted January 15, 2019 Report Share Posted January 15, 2019 Hi, There is a very simple solution for that. First, change the form element of the field you want to have the random name to calculated value. Then, put this SQL Code: SELECT TOP 1 <Field_Name> FROM <Table_Name> ORDER BY NEWID() Change the Field_Name to the name of the field that you want to get the value from. Same as the Table_Name. This should do the trick. Quote Link to comment Share on other sites More sharing options...
0 HampasLOUpa Posted January 31, 2019 Author Report Share Posted January 31, 2019 Hi, I tried using it and the randomizer worked. However, the problem here is that all it gives me a name that was previously called. I think this needs further code to limit the randomly selected data. Thanks! Quote Link to comment Share on other sites More sharing options...
0 MayMusic Posted February 6, 2019 Report Share Posted February 6, 2019 In Report DataPages you have the option to check "Random Order" in " Search and Report Wizard - Results Page Options " screen and choose to return only one record. Quote Link to comment Share on other sites More sharing options...
Question
HampasLOUpa
I'm planning to create some sort of a randomizer app. I want my DataPage to randomly select a name from a field in my table. Any idea to do this?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.