Me.mdate.Report.RecordSource = "SELECT
tblJobDetails.Partner, tblJobDetails.[M DATE ON Going
Research]FROM tblJobDetails WHERE (((tblJobDetails.[M
DATE ON Going Research]) Between #" & StartDate & "# And
#" & EndDate & "#)) ORDER BY tblJobDetails.Partner;"
There are some problems with the SQL -- have you checked this out in the
query design window?
Also i have tried putting the code into mdate itself but
it has an error saying you cant change sourcecode when
printing has started.
Is this in the OnFormat event or something? I am not surprised that Access
is complaining if you are altering the recordsources on the fly like that.
My instinct would be to get the basic query right before opening the report
(that is what joins are for, after all) and not mess about.
If there is some reason why you need an exceptionally complex approach,
then you may be better off in the m.p.a.reports group.
B Wishes
Tim F