Results 1 to 2 of 2
  1. #1
    pratim09 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Apr 2011
    Posts
    30

    Problem in requery of reports in acess 2003

    I have a report named rptHoursTracking and a strSQL statement for fetching data from database according to some criteria.
    Report form name is frmReport .On the click of search button in the frmReport I am trying to show the report with thebelow code .



    DoCmd.OpenReport "rptHoursTracking", acViewReport
    Report_rptHoursTracking.RecordSource = strSQL
    Report_rptHoursTracking.Requery

    The requery is giving compilation error as method or data memeber not found .The above code is working fine in access 2007 but 2003 is giving the problem. How do I change the code to work in 2003 as we need to deploy in 2003 machine. Any help will be highly appreciated.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    You don't need the requery when opening the report. Set the recordsource FIRST, then open the report and you shouldn't have any difficulty.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Problem with Environ function in 2003 SP3
    By wgreynol in forum Programming
    Replies: 2
    Last Post: 10-21-2010, 11:07 PM
  2. Acess 2007 & SQL question
    By willigiann in forum Forms
    Replies: 3
    Last Post: 09-15-2010, 09:54 AM
  3. Acess autopopulate a query
    By stendec in forum Access
    Replies: 0
    Last Post: 10-20-2009, 03:49 PM
  4. Acess 2007 Validation Problem- HELP!?
    By JackLowe in forum Access
    Replies: 1
    Last Post: 04-20-2009, 12:38 PM
  5. Drop down box requery problem
    By Nicholas in forum Forms
    Replies: 1
    Last Post: 08-11-2006, 11:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums