Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 46
  1. #31
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114

    Went throught the instructions again. Made sure everything was as it said. I did change the Description Field name to Case_Name as that is the data I need out of the report. Then changed the code to match.
    As well matched the Case_Name field with 255 characters etc as that is what I need not 15. However
    When I open the report that is it pulling from I get the same error that Case_name isn't indexed.

    Sorry but not sure why this is happening. Trying to solve it myself with no go.

    Click image for larger version. 

Name:	Capture.JPG 
Views:	19 
Size:	20.5 KB 
ID:	23646

  2. #32
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Perhaps that's why:
    Click image for larger version. 

Name:	litig.png 
Views:	18 
Size:	44.5 KB 
ID:	23647
    Also changing field name from Description to Case_Name does nothing. What matters is where do you put the UpdateToc() function. It must be in OnPrint event of header section of Case_Name, and that section is something you need to create with report Group&Sort option.

  3. #33
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Ok so I have changed it back to Description since it makes no difference. HOwever I am truly lost. I tried to create a group report which I have no idea what the grouping does even after following instructions. It created a report but again nothing was in it.

    I am sorry but really lost at this point..Maybe over thinking it. The updatetoc is on Print in the page header section. of the report I need the table of contents for. That report has the field Case_name which is the field I need the data pulled from...

    Am I a complete idiot?>

  4. #34
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    The updatetoc is on Print in the page header section. of the report I need the table of contents for. That report has the field Case_name which is the field I need the data pulled from...
    It won't work as intended while on page header. You need to create group for case_name and put UpdateToc function there.
    First click on group&sort button on ribbon:

    Click image for larger version. 

Name:	grs1.png 
Views:	17 
Size:	251.5 KB 
ID:	23648

    Then add group for case_name:

    Click image for larger version. 

Name:	grs2.jpg 
Views:	18 
Size:	14.8 KB 
ID:	23649

    Move your case_name textbox to this new group and set OnPrint property as below:
    Click image for larger version. 

Name:	grs3.jpg 
Views:	19 
Size:	65.1 KB 
ID:	23650

  5. #35
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Ok did that. After opening the report and going to print preview of that report I get an error now.

    So am I correct in assuming that when I print this report it will populate the Table of Contents report I created? At least is that is how it is supposed to work?
    Servers are so much easier to work with then coding lol.

    Click image for larger version. 

Name:	Capture.JPG 
Views:	18 
Size:	28.2 KB 
ID:	23651

  6. #36
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    When viewed in Print Preview mode it will populate table "Table of Contents" on which is that Table of Contents report based.
    And about that error - double check if there's nothing left from previous attempts.

  7. #37
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    I don't see any missing or extra code to cause that error.

    Thanks again for all your help

  8. #38
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Anyone see why this isn't working ?

  9. #39
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Can you upload your db again with that error? There must be something you missed but I can't tell from here.

  10. #40
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Testing_Litigation_DB1.zip

    Here you go

    Thanks
    Pete

  11. #41
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Ok, you've got " " (space character) in On Print event property of Page header...
    Delete it and you're good.
    Or here's one I've done before from your previous upload and it's working.
    Testing_Litigation_DB1.zip

  12. #42
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Wow, how did you see that? It works now....THANK YOU SO MUCH!!!!!!!

    You rock!

    Peter

  13. #43
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Happy to help

  14. #44
    pharrison74 is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2016
    Posts
    114
    Click image for larger version. 

Name:	Capture.JPG 
Views:	13 
Size:	24.3 KB 
ID:	23686 Seems it isn't counting the entries correctly. Only showing 1's

  15. #45
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Umm... I don't think it's supposed to count anything, those 1s are just a page number on which entry in original report is located.

Page 3 of 4 FirstFirst 1234 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 12-16-2014, 04:20 PM
  2. Replies: 5
    Last Post: 04-05-2014, 08:52 PM
  3. Table of Contents
    By Alex Motilal in forum Reports
    Replies: 1
    Last Post: 09-17-2012, 10:48 AM
  4. Replies: 5
    Last Post: 04-18-2012, 12:04 PM
  5. Replies: 5
    Last Post: 12-08-2011, 10:52 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