Just to amplify what mx said, open the report in design view, click on the date textbox, then right-click, select Properties, and note nothing under the Event tab.
Main Topics
Browse All TopicsI have a report that sorts jobs by dates (I list the date then the jobs for that day) I made a form that shows the date at the top and a data sheet view of the table showing data for that date.
To make the form I made a query that qrouped the dates for the top then added a data sheet view of the table. I linked the date fields to gether.
I would like to double click on the date in the report and have it open this form at the correct date heading.
The date field on the report is "rptDate" the date field on the form is "DateDet". I am not sure how to set up the where part of the DoCmd. see below:
DoCmd.OpenForm "frmDateJObs", acNormal, , [Where], acDialog
I tried a few things but I only open a blank form.
Thanks for your help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I have the date field in the body of the report - it is set to not visible. I then put another text box in the AssemblyDate Header section that has =[AssemblyDate] as it control source. The report shows the correct dates with the all the jobs for that date underneath.
So when I click on this date box I can run code under the double click event. I tested the double click event with:
varRptDate = rptDate
MsgBox varRptDate
When I click on a particular date on the report the message box returns the correct date. Since I can get this value off of my report - how can I open the form with the date I picked.
I opened the Report in design view. I added a text box to the AssemblyDate Header section of the Report. When I show the Report in Report view and click on the date it returns a value.
I have a screen shoot showing the message box I get when I double click on 11/6/2009 on the report. The next screen shoot shows the form opening up after double clicking the date - (i did not have a where condition so it open to first record)
This does seem to work.
Hi,
in Access 2007 in report view you can use a doubleclick event. This makes reports more similar to the professional reporting services of SQL Server.
To open the form with DoCmd you can use this:
DoCmd.OpenForm "frmDateJObs", acNormal, , "[Name of the date field in the underlying table]=#" & Month(Me.rptDate) & "/" & Day(Me.rptDate) & "/" & Year(Me.rptDate) & "#", acDialog
This converts a displayed date into the date format Access needs.
Cheers,
Christian
Business Accounts
Answer for Membership
by: DatabaseMXPosted on 2009-11-05 at 11:45:05ID: 25753132
"I would like to double click on the date in the report and have it open this form at the correct date heading."
Sadly, this cannot be done in Access. This functionality has never been implemented. You would need Crystal Reports or similar to do this.
mx