For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Crystal Reports > April 2005 > How to show the actual record: use of selectionformula ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to show the actual record: use of selectionformula ?
Adriano

2005-04-28, 4:05 am

I would like to preview/print the data from the unique id of the actual
viewed Record
But when show CRForm it is shown always the first IDRecord of the database
and not the
actual viewed IDRecord

Why ?

Here's the code (visual basic 6 and crystal report xi)

Global IDRecordNUM as integer

' Click print button
IDrecordNUM = rs("IDRecord")
CRForm.CRViewer1.SelectionFormula = "{rs.IDRecord} in [" & IDRecordNUM &
"]"
CRForm.Show

Thenks
Adriano


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com