Hi,
I’m creating a database that will allow users to select various options and then select a template they wish to generate in Word. Depending on the template they choose, I want to display additional options for them to fill values in to. These options will change depending on the template they choose.
I’m trying to create a dynamic form which will allow the user to select what options they chose from the main screen, but also present the additional options I want them to fill out on a ‘pop-up’ (dynamic) form. Based on the options they chose on the main screen along with the additional options they fill out on the pop-up form, this will allow them to generate their template.
I don’t want to save the pop-form I present to the user. I just want to use this as a way for the user to review what they previously filled in and also add additional data before they generate the template.
I can create the form ok and create labels etc which shows the options they’ve chosen. I can also create text boxes etc for them to fill out additional data. I’m also creating a button which the user will click, at which point I’m then trying to call another routine which will actually generate the letter in Word. Basically I need to set the ‘On Click’ event of this button to call the routine. I’ve tried just setting the ‘On Click’ property of the button to call the routine directly – Eg, =GenerateLetters(), but I receive an error when I do this. I think I need to set an ‘event procedure’ on the button once it’s created, but not sure if I’m able to do this since the form itself isn’t saved. Is this possible? Is there another/better way to do this?
Cheers,