You can, however, have an in form database of sorts. I have done this in the past.
I have hidden text fields to 'store' the details i want to refer to.
For example: you might have 10 ID, Name and Dept storage fields that are hidden. You would also need a dialog for 'saving' the items into the form. The form itself still needs to be saved to actually save the data.
You would need a button to invoke the adding dialog and a button for saving. The save button would check if there is a free space in your storage fields and save it if there is. You might need to add code to see if an ID is available too.
The exit event code in the ID field would need to check what is in the field compared to what is in storage and return the correct field rawValues when a match is found. It sounds a little complex but in practice it is quite simple....but in this case it would depend how many IDs there are. It could become a quite large code.