J
JeffH
I am having difficulty establishing a table of contents for a report that I
have. I have used the code suggested in an article posted here and it keeps
erroring out. I have reviewed the code and there are no mistakes.
Here is the article I am referring to:
http://support.microsoft.com/default.aspx?scid=kb;en-us;210269.
My first error is at line
Set TocTable = db.OpenRecordset("Table of Contents", dbOpenTable)
I changed the code to use "dbOpenDynaset" as below and then I get past
the first line. See below.
Set TocTable = db.OpenRecordset("Table of Contents", dbOpenDynaset)
Then the below line errors out.
TocTable.Index = "Description"
I get a run time error 3251, "Operation is not supported by this type of
object"
Where do I go from here. I'm an Access newbie and VB code is a challenge
right now.
I am using the function on a very simple report right now in order to get a
table of contents. The actually report I need it for has a subreport in it
for which the table of contents is needs. So it only gets more complicated
if I get this 1st part figured out.
Help?
have. I have used the code suggested in an article posted here and it keeps
erroring out. I have reviewed the code and there are no mistakes.
Here is the article I am referring to:
http://support.microsoft.com/default.aspx?scid=kb;en-us;210269.
My first error is at line
Set TocTable = db.OpenRecordset("Table of Contents", dbOpenTable)
I changed the code to use "dbOpenDynaset" as below and then I get past
the first line. See below.
Set TocTable = db.OpenRecordset("Table of Contents", dbOpenDynaset)
Then the below line errors out.
TocTable.Index = "Description"
I get a run time error 3251, "Operation is not supported by this type of
object"
Where do I go from here. I'm an Access newbie and VB code is a challenge
right now.
I am using the function on a very simple report right now in order to get a
table of contents. The actually report I need it for has a subreport in it
for which the table of contents is needs. So it only gets more complicated
if I get this 1st part figured out.
Help?