ms access - sql query is too complex -


please me simplify complex query statement because when run code end "query complex" error

select tbltimereport.dbidtimereport, tbltimereport.dbidhumanresource      , tblhumanresource.fullname, tblhumanresource.title, tbltimereport.dbidproject      , tblproject.projectid, tblproject.projectname, tbltimereport.dbidactivity      , tblactivity.activityid, tblactivity.activityname, tbltimereport.datetr trdate      , tbltimereport.starttime, tbltimereport.duration, tbltimereport.hourlyrate      , sum([duration]*[hourlyrate]) cost, tbltimereport.comments, tbltimereport.deleted      , tbltimereport.inputby, tblhumanresourceinput.[fullname] inputbyfullname      , tbltimereport.inputdate (((tbltimereport  left join tblhumanresource      on tbltimereport.dbidhumanresource = tblhumanresource.dbidhumanresource)  left join tblhumanresource tblhumanresourceinput      on tbltimereport.inputby = tblhumanresourceinput.dbidhumanresource)  left join tblproject      on tbltimereport.dbidproject = tblproject.dbidproject)  left join tblactivity on tbltimereport.dbidactivity = tblactivity.dbidactivity %wherecondition% group tbltimereport.dbidtimereport, tbltimereport.dbidhumanresource        , tblhumanresource.fullname, tblhumanresource.title, tbltimereport.dbidproject        , tblproject.projectid, tblproject.projectname, tbltimereport.dbidactivity        , tblactivity.activityid, tblactivity.activityname, tbltimereport.datetr        , tbltimereport.starttime, tbltimereport.duration, tbltimereport.hourlyrate        , tbltimereport.comments, tbltimereport.deleted, tbltimereport.inputby        , tblhumanresourceinput.fullname, tbltimereport.inputdate 

thanks in advance

if report, names of columns imply, experiencing this:

reports create temporary queries each section of report, including report header, page header, group header, detail section, group footer, page footer, , report footer. of temporary queries each report combined segmented virtual table (svt). final output must compiled within 64k segment limit.

http://support.microsoft.com/kb/103429

so if query compiled within limits, size multiplied number of sections. article implies newer versions of access have increased dynamic limit, might help.

you try creating view group aggregation, , leave out of name columns, , include critical ids. use join against view pull in names. i'm not sure though if because don't know if contents of view pulled in whenever access compiles query.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -