Results 1 to 10 of 10
  1. #1
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    Help Required on Report List

    Dear



    Please find the attachment which have all details about the error while opening the Report from a report list.

    thanks

    zee

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    The row source for the combo box needs to include the regular name field as well and not just the one that is stripped of the sjs_. You need to have that field as the bound column of the combo box and you can set it to be hidden though. The Row Source of the combo should just be:

    SELECT MsysObjects.Name, Mid([Name],5) AS QueryName
    FROM MsysObjects
    WHERE (((Left([Name],4))="sjs_"))
    ORDER BY MsysObjects.Name;

    And then Column Count set to 2
    Bound Colum set to 1
    And ColumnWidths 0";2"

  3. #3
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Sir, its working now. so nice of u. bye

  4. #4
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Sorry to write u back. The list which appears in Combobox it is the list which contains sjs_ but there shud be the queryname field?

  5. #5
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by cap.zadi View Post
    Sorry to write u back. The list which appears in Combobox it is the list which contains sjs_ but there shud be the queryname field?
    Not sure I'm understanding your question. Can you upload a couple of screenshots to this forum showing what you are asking about?

  6. #6
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    sir, please find the attached file.

  7. #7
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Change these properties of the combo box:
    ColumnCount = 2
    ColumnWidths = 0";3"

  8. #8
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    fine sir, i try now.

  9. #9
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    yes sir, it is working. thanks. sir one more question please. if there i have Pivot Charts which are made on forms ? so how to display them through same command. it appears in list but could not be open with this command bcz it is only for reports. so please advise?

  10. #10
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    You would have to name them something like frm_

    and then change the code in the combo's After Update event to run DoCmd.OpenForm instead of DoCmd.OpenReport if the first 4 characters are frm_

    So something like this:

    Code:
     
    Select Case Left(Me.ComboBoxNameHere, 4)
    Case "rpt_"
       DoCmd.OpenReport Me.ComboBoxNameHere, acViewPreview
    Case "frm_"
       DoCmd.OpenForm Me.ComboBoxNameHere
    End Select

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

Similar Threads

  1. List names in Report
    By Javen in forum Reports
    Replies: 3
    Last Post: 09-15-2011, 01:40 AM
  2. Replies: 1
    Last Post: 08-25-2011, 06:50 PM
  3. Filter Report By list box
    By BorisGomel in forum Access
    Replies: 1
    Last Post: 04-21-2011, 03:26 PM
  4. Report Distribution List
    By mvuhu_accessforum in forum Forms
    Replies: 1
    Last Post: 10-18-2010, 11:18 AM
  5. List in a Report
    By blevins134 in forum Reports
    Replies: 1
    Last Post: 05-22-2010, 08:20 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