473,511 Members | 15,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Report to rtf

I have downloaded Stephen Leban's code to write an Access report to rtf, and
am running into trouble with the fCreateSnap procedure at the line:
Set specs = CreateClass
When I try to compile, I get an error 'Variable not defined'
I am new to using classes in this way, so hope that someone (Stephen?) can
help.
Is there a missing procedure for CreateClass. If so, where do I find it, and
where do I use it?

--
Bob Darlington
Brisbane
Nov 13 '05 #1
4 1740
Do you get a 'broken reference' reminder when you try to open your
database? What happens if you compile your code? I moved the
ReportSpecs.MDE file into another directory and that was the only way I
could get it to cause errors.

'Variable not defined' - Your file probably can't find the MDE file
where the library files you're referencing are located. Try putting
the two databases in the same folder, recompiling your code and running
it again.

Nov 13 '05 #2
You were close. But I was even more stupid than that. I'd actually deleted
the reference. One of my late night efforts which I must stop.

I seem to remember Stephen saying (in the ng) that he was going to rewrite
this without the need for a separate reference.

Anyway, it's a great add in and its solved some real problems for me. I wish
I'd looked at it a long time ago.

--
Bob Darlington
Brisbane
<pi********@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Do you get a 'broken reference' reminder when you try to open your
database? What happens if you compile your code? I moved the
ReportSpecs.MDE file into another directory and that was the only way I
could get it to cause errors.

'Variable not defined' - Your file probably can't find the MDE file
where the library files you're referencing are located. Try putting
the two databases in the same folder, recompiling your code and running
it again.

Nov 13 '05 #3
I've got the rewrite half done. Just have to find a few hours sometime
to complete it.
:-(

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Bob Darlington" <bo*@dpcmanAX.com.au> wrote in message
news:42**********************@news.optusnet.com.au ...
You were close. But I was even more stupid than that. I'd actually deleted the reference. One of my late night efforts which I must stop.

I seem to remember Stephen saying (in the ng) that he was going to rewrite this without the need for a separate reference.

Anyway, it's a great add in and its solved some real problems for me. I wish I'd looked at it a long time ago.

--
Bob Darlington
Brisbane
<pi********@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Do you get a 'broken reference' reminder when you try to open your
database? What happens if you compile your code? I moved the
ReportSpecs.MDE file into another directory and that was the only way I could get it to cause errors.

'Variable not defined' - Your file probably can't find the MDE file
where the library files you're referencing are located. Try putting
the two databases in the same folder, recompiling your code and running it again.



Nov 13 '05 #4
Thanks Stephen. It's a great utility which has got me out of a hole.

--
Bob Darlington
Brisbane
"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:0U********************@ursa-nb00s0.nbnet.nb.ca...
I've got the rewrite half done. Just have to find a few hours sometime
to complete it.
:-(

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Bob Darlington" <bo*@dpcmanAX.com.au> wrote in message
news:42**********************@news.optusnet.com.au ...
You were close. But I was even more stupid than that. I'd actually

deleted
the reference. One of my late night efforts which I must stop.

I seem to remember Stephen saying (in the ng) that he was going to

rewrite
this without the need for a separate reference.

Anyway, it's a great add in and its solved some real problems for me.

I wish
I'd looked at it a long time ago.

--
Bob Darlington
Brisbane
<pi********@hotmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
> Do you get a 'broken reference' reminder when you try to open your
> database? What happens if you compile your code? I moved the
> ReportSpecs.MDE file into another directory and that was the only way I > could get it to cause errors.
>
> 'Variable not defined' - Your file probably can't find the MDE file
> where the library files you're referencing are located. Try putting
> the two databases in the same folder, recompiling your code and running > it again.
>


Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
23848
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how...
1
2933
by: Joris Kempen | last post by:
Hi people, I know that the question has come around sometimes: How to open an Access Report using ASP and export it to for example RTF. I'm trying to implement the first method of David...
20
4609
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
8
3488
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
7
8823
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
6552
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
2
14104
by: Dean Slindee | last post by:
Anybody written code in VB.NET to: 1) show a print preview window of reports already written and stored in an Access 2002 database; or 2) execute the print of a report stored in an Access 2002...
6
3651
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
2
9334
by: amith.srinivas | last post by:
Hi all, From a word macro in VBA, I am trying to create a report in access DB. The report is based on a query with a parameter. I am using Set rpt = Application.CreateReport rpt.RecordSource =...
9
4474
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
0
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7432
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.