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 4 1751
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.
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********@hot mail.com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.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.
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.c om.au> wrote in message
news:42******** **************@ news.optusnet.c om.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********@hot mail.com> wrote in message news:11******** **************@ g44g2000cwa.goo glegroups.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.
Thanks Stephen. It's a great utility which has got me out of a hole.
--
Bob Darlington
Brisbane
"Stephen Lebans" <Fo************ *************** *************@l invalid.com>
wrote in message news:0U******** ************@ur sa-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.c om.au> wrote in message news:42******** **************@ news.optusnet.c om.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********@hot mail.com> wrote in message news:11******** **************@ g44g2000cwa.goo glegroups.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. >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 to use a database
table
but all I want to do now is to click a command button to display this access
report.
Any suggestions please ?????
|
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 Cline:
http://www.15seconds.com/issue/981216.htm
|
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 4 to Service Pack 7
2) Set Subdatasheet Name to from
3) Shortened the file name of the .MDB file
4) Made sure the Track name AutoCorrect info is off
|
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 the moment the printed output is usually going to Word. It's turning into
an unholy mess, because I'm having to prepare umpteen different Word
templates, and the queries that drive them, depending on what events a
course has.
|
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 want my users to be able to select a report, click on a command
button on a form, which will then automatically create the report as a
pdf file and save it to the user's machine.
I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
| |
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 where the job is
running, the job runs sucessfully, PDF files got generated, everything
is good. If I scheduled the job to run at the time that I am not
logged into the server, Access is not able to print to the printer.
The error is pretty...
|
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 database?
Thanks,
Dean Slindee
|
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 development of
reports, it is certainly fine in my book.
But for end-users, with little experience or training, it would be nice
to have an easy way to handle various selection criteria, perhaps with
relatively stock reports. I see easy to use by...
|
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 = <<Query_Name>>
Once I create the report, I m trying to create labels to display the
Report title in the Report Header section.
|
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
like to know is the stability, speed & ease of use of both the
products.
I believe Access 2007 has a new file format too and that it may be
slower.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |