Results 1 to 4 of 4
  1. #1
    mwabbe is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    79

    Opening a report

    i have a button that opens reports based on what is typed in. but when the report is opened the view doesnt switch to the report it stays on the form i have to manually switch to the report. how can i make it so when the report is opened it is the current object?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What code do you have behind your button?

  3. #3
    mwabbe is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    79
    Code:
    DoCmd.OpenReport Me.cboRepName, acViewReport, , "EmpName = '" & Me.cboEmpName & "'", acWindowNormal

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    try:
    DoCmd.OpenReport Me.cboRepName, acViewReport, , "EmpName = '" & Me.cboEmpName & "'", acDialog

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

Similar Threads

  1. Opening a picture
    By dada in forum Programming
    Replies: 1
    Last Post: 08-15-2010, 09:33 PM
  2. Opening one report for current form???
    By GEPC in forum Reports
    Replies: 1
    Last Post: 07-15-2010, 10:46 AM
  3. Opening to new entry
    By chazcoral2 in forum Forms
    Replies: 1
    Last Post: 07-02-2010, 11:33 AM
  4. Opening page.
    By emccalment in forum Access
    Replies: 1
    Last Post: 02-18-2010, 03:56 PM
  5. Replies: 3
    Last Post: 10-19-2009, 01:14 PM

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