link = Resource id #2
result = Resource id #3
numrows = 37