I have a form that records information to produce a transmittal cover letter. After data entry I would like a command button to save the record to a table and open a report populated with the current info, ready for printing.
I have a parameter query that asks for Date and Project. I've tried code on the cmd button to save the record, then set the Date and Project fields of the query to the text boxes of the same form fields. Then it should open the report whose data source is the query.
Unfortunately, my code returns type mismatch error.
Am I going about this correctly, or is there simpler way?
Thanks in advance.
I have a parameter query that asks for Date and Project. I've tried code on the cmd button to save the record, then set the Date and Project fields of the query to the text boxes of the same form fields. Then it should open the report whose data source is the query.
Unfortunately, my code returns type mismatch error.
Am I going about this correctly, or is there simpler way?
Thanks in advance.