I tried to do exactly the same , not sure if I miised out anything.
The last bit may be , I may not have understood.
Save the VBA code, name the report, close any vba windows and on the “Access Data From VBA” window: Highlight “ThisDocument.getRepoUsers” and run the the code.
I copied and pasted “ThisDocument.getRepoUsers” , does not bring anything. I have changed the admin/ password.
There isn’t any error showing up , just blank , I have attached a snapshot. test.doc (51.0 KB)
It means to save the VBA procedure by clicking on save button in VBA editor, it will prompt for report name
Then close the new report wizard and run the procedure from Tools > Macro > Macros menu in DeskI
You will be prompted to run the getRepoUsers sub-routine
.
Thanks for your help Haider, It is working finally !
Next
how can we modify this code to make it return two column , I tried to returm multiple columns but it returns me the first columns copied into last column.