how can I create a function like InputBox but then with a customized form? In other words I want to open a form from code, make the code wait until the user closes the form and then take the value from a filled in control on that form? <br>If I would use for example a form with a Calendar on it to retrieve a a date frome the user, the line would look like this<br><br> dteDate = CustomDateForm()<br><br>and CustomDateForm would be something like<br><br>Function CustomDateForm() as Date <br><br> docmd.openform ("frmDateForm"
<br><br> => HERE THE CODE HAS TO WAIT!! HOW?????<br> <br> CustomDateForm = frmDateForm!txtDate => I have to get the value of the textbox on the form back into the code when the frmDateForm is closed => HOW???<br><br>end Function<br><br>Thank you very much in advance for your help!<br><br>Greetings,<br><br>Dirk<br><br><A HREF="mailto:dirk.news@yucom.be">dirk.news@yucom.be</A>