How can I create a fake autonumber in a query? I have a set of data that have their own individual number but I would like to sort them by date and then run a dsum() based on the FAKE autonumber.
Thanks Keith ... I was thinking the exact same thing but thought it was very ineffecient due to numerous function calls. But after searching the forums I think this is the best solution.
Keith just out of curiosity don't you just need?
Code:
Public Function FakeAutoNum (LoanID)
counter= counter + 1
FakeAutoNum = counter
end Function
Hmmm I implemented it with the function but it's not working well with Access. Just by viewing the query in datasheet views the FakeAutoNumbers change. It seems very unstable to do it this way.
I decided to do what I want by creatinga tempTable.