Solved

Simple ? about VB/Crystal Reports

Posted on 1999-01-08
3
119 Views
Last Modified: 2010-05-03
I'm calling Crystal Reports from VB and setting up various
properties like .SelectFormula, .SortField etc. If the value
of these statements is wrong (e.g. I mispell a column name)
no report is created but I dont get an Error Message. Is
there an Error Log stored somewhere or some option in Crystal Reports to log these errors ?
0
Comment
Question by:eryan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
Inteqam earned 30 total points
ID: 1454883
try to put this after the commandReport.action=1

if   commandReport.LastErrorNumber > 0 then
   msgbox commandReport.LastErrorString
end if

where commandReport is the CR activeX

hope this works

0
 

Author Comment

by:eryan
ID: 1454884
Cheers, sorry about the delay in getting back to you.
0
 
LVL 7

Expert Comment

by:Inteqam
ID: 1454885
IT IS OK , GLAD IT WORX

0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question