Article View: comp.lang.basic.visual.database
Article #30Re: Crystal Report Control for vb6 app
From: Graham Hull
Date: Sat, 18 Nov 2000 00:00
Date: Sat, 18 Nov 2000 00:00
42 lines
2411 bytes
2411 bytes
I use VB5 and Crystal Reports 4.6, so this may be bollocks. But in these
versions selection formulas are written (using yours as an example):
PrtCurrent.SelectionFormula = "{woMain.WorkOrderID}""" & ID & """"
Try this.
"Corey Harbaugh" <charbaugh1000@hotmail.com> wrote in message
news:Rb2R5.65$7.99512@typhoon.kc.rr.com...
> I have a simple DAO app. I want to use the crystal report control for a
> custom report that I made for this app. It's the client report. When the
> client creates a new record I want them to be able to print just the
current
> record.
>
> I have a menu to print the report here is the code for the click event.
>
> Dim ID as Byte
> ID = txtWorkOrderID.Text 'this is the primary id for the table, its
> also displayed as locked textbox on the client form.
> PrtCurrent.DataSource = "ctsworkorder.mdb" 'this is the database,
> PrtCurrentRecord is the name of the Crystal Report Control
> PrtCurrent.SelectionFormula = "woMain.WorkOrderID" & ID " 'woMain
is
> the table, WorkOrderID is the primary id for the table
> PrtCurrent.PrintReport ' print to screen
>
>
> I get nothing from this code, the control doesent even open! What am i
> doing wrong? I have the report name in the Crystal Report Contol
propertys.
>
>
> Help ME!
>
>
> Thanks,
>
> Corey
>
>
Technical Details
Message-ID:
<8v6qo0$7pv$1@news7.svr.pol.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<Rb2R5.65$7.99512@typhoon.kc.rr.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11629a,e921512243c01fd0 X-Google-Attributes: gid11629a,public X-Google-Thread: 110e3b,e921512243c01fd0 X-Google-Attributes: gid110e3b,public X-Google-Thread: 108062,e921512243c01fd0 X-Google-Attributes: gid108062,public X-Google-Thread: 1143a7,e921512243c01fd0 X-Google-Attributes: gid1143a7,public From: "Graham Hull" <graham@hullg.fsnet.co.uk> Subject: Re: Crystal Report Control for vb6 app Date: 2000/11/18 Message-ID: <8v6qo0$7pv$1@news7.svr.pol.co.uk> X-Deja-AN: 695199286 References: <Rb2R5.65$7.99512@typhoon.kc.rr.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@theplanet.net X-Trace: news7.svr.pol.co.uk 974581312 7999 62.136.244.111 (18 Nov 2000 21:01:52 GMT) Organization: Customer of Energis Squared X-MSMail-Priority: Normal NNTP-Posting-Date: 18 Nov 2000 21:01:52 GMT Newsgroups: comp.lang.basic.visual.database,comp.lang.basic.visual.misc,comp.lang.clipper.visual-objects,cz.comp.lang.basic.visual