Thanks Raskew, that was a very useful link.
dcx693 - I need to create wizards and a wizard creator in my application that would guide the user through the steps the user needs to carry out certain functionalities.
OK. I made sure from the beginning that I have my functionalities in separate forms so I can create a table with a sequence of forms. Than I can have a wizard go through the records and open the forms one after the other, but in some cases I might need to do conditional things between the opening of two forms which are dependent on the wizard that opens those forms. I thought that it would be good if you could see what the wizard was doing just by looking at the table that stored the steps. So I thought of a table like:
OpenForm FormName1
OpenForm FormName2
OpenForm FormName3
DoCode "Sub ............... End Sub"
OpenForm FormName4
I guess it would be simpler to store only the name of the sub. But I thought that storing the actual procedure there would make it better organised and documented.