Hayley Baxter
Registered User.
- Local time
- Today, 17:32
- Joined
- Dec 11, 2001
- Messages
- 1,607
I am new to pop up forms basically I want something simple. I want to select a report preview cmdbutton then my pop up form would appear asking for the contract type, enter this ie maintenance then up comes the report with all the maintenance contracts.
I have created a form with an unbound text box and 2 cmd buttons ok and cancel. I have the folloing criteria in my query which wrks however I want to say "Enter Contract Type"
NOT THE FOLLOWING CRITERIA IN MY DIALOUG BOX
=[Forms]![SubFrmSearchContractDetails]![Contract Name]
So now that I have set up this form I will obviously have to set code behind my cmdbutton for previewing the report to open my pop up frm but what do I then need to do so that I can tell the form that's the criteria I want it to look for then bring up the report? I suppose I will have to put code behind the Ok button to open the report it's just where do I put the criteria??
Many thanks
I have created a form with an unbound text box and 2 cmd buttons ok and cancel. I have the folloing criteria in my query which wrks however I want to say "Enter Contract Type"
NOT THE FOLLOWING CRITERIA IN MY DIALOUG BOX
=[Forms]![SubFrmSearchContractDetails]![Contract Name]
So now that I have set up this form I will obviously have to set code behind my cmdbutton for previewing the report to open my pop up frm but what do I then need to do so that I can tell the form that's the criteria I want it to look for then bring up the report? I suppose I will have to put code behind the Ok button to open the report it's just where do I put the criteria??
Many thanks