Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #11 (permalink)  
Old March 23rd, 2009, 08:57 AM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default Done but still same problem

Hi again!

Ok I made a backup of my Access database - and then I deleted all records except for 10 of them (I had over 600 records before the deletion). Each of the ten now have different unique name - and I put in the Description field 'Indexed - No Duplicates.'

I ran the report and still the same Runtime Error occurs - Object Required. This also happens if I put 'Index - Duplicates OK'.

If I put No Index in the Description field, then it gives the 3800 runtime error message that Description field is not an index in the table. To resolve this, I remove '.Index' from TocTable.Index = "Description" so it simply reads:

TocTable = "Description"

but then I get the 424 runtime error.

Thanks!
  #12 (permalink)  
Old March 26th, 2009, 04:39 AM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default Hiya folks!

Hiya folks!

Any more suggestions? I created a new database from scratch - just to make sure that it isnt something wrong with the first database that I was using. Very small file with just a few entries and I get exactly the same errors that I got before (is there anyway to upload this file for the reference of readers of this thread?).

I was just wondering:

1. Could it be any libraries that I did not add?
2. Could it be the version of Access that I am using (2002 SP3)?
3. Could it be the way that I created the modules (I clicked on 'Modules' in the navigation pane and then on 'New')?

Really confused - tried everything that I could possibly think of and still cant get it to work.

Thanks!
  #13 (permalink)  
Old March 26th, 2009, 05:18 AM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 83
Thanks: 1
Thanked 0 Times in 0 Posts
Default Could it be the way I named the modules

Could it be the way I named the modules?

I have each part of code named separately as Module1, Module2, Module3 and Module4.

I tried to rename them as:

Module1
InitToc
UpdateToc
UpdatePageNumber

And instead of getting the runtime error 424, I get a different error (this only happened when I changed the name of Module3 to UpdateToc): 'The expression OnPrint you entered as the event property setting produced the following error: The expression you entered has a function name that Microsoft Access cant find.'

The function that I have in the OnPrint on the category header is: =UpdateToc([RecipeName];[Report])

Could this be the problem? The way I named the modules? Os should I keep it as it originally was - and try to resolve the 424 runtime error?

Thanks!
  #14 (permalink)  
Old September 14th, 2015, 04:14 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Change the parameter to Text box in the below function. This solve my problem

Function UpdateToc(TocEntry As TextBox, Rpt As Report)
'Call from the OnPrint property of the section containing
'the Table Of Contents Description field.
'Updates the Table Of Contents table.

TocTable.Seek "=", TocEntry.Text

If TocTable.NoMatch Then
TocTable.AddNew
TocTable!Description = TocEntry.Text




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display the arraylist contents into a table yzlin04 ASP.NET 2.0 Basics 2 July 27th, 2007 06:23 AM
Regarding Table of Contents Creation forrestfsu XSLT 7 June 21st, 2007 03:04 PM
Contents of report are blank jtkaylor BOOK: Professional Crystal Reports for VS.NET 1 April 26th, 2006 04:47 PM
table of contents light BOOK: Professional Crystal Reports for VS.NET 0 March 9th, 2005 09:45 AM
User can not view Report Manager contents lidsurfer BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 November 23rd, 2004 01:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.