Incrementing an identifier

Incrementing an identifier

  
Hello Everybody,
I did not see this in the forum, so here goes.  The page displays a record on the page.  I want to press a button.  The button leads to some processing from the users input on the page.  The page refreshes to the next record, which is incremented from a query in Preparation event.  How do I increment to the next record?  I tried using the assign widget and increment an integer variable and then tried to use integer variable in the query.........but I get error "Looking for identifier instead of integer".  How do I convert an integer to an identifier?
Thanks in advance!
Frank
Hi,

IntegerToEntityRefInteger() is the function you asked