Hi Ivo!
Jim is right, there is no way to add controls to a form unless it is in design view, even using code it must be in design view. Even if you do not know in advance how many controls you will need to display your query, maybe you can figure out some sort of maximum and use Jim's idea above about hidden controls. You can set the controlsource of the different controls to match the fields that were returned. Alternatively, you can create a form in code and then add the controls you need before displaying it.
hth
Jeff Bridgham
bridgham@purdue.edu