Looks different. I use Crystalreport control. I have a button for clicking to view report. I put that code in the button_click.
Do you have data source called Report?
Try this in your vb code. may be put it in
Private sub cmdViewReport click()
CrystalReport1.Connect = "DSN = yourdsn;UID = sa;PWD = password;DSQ =DBname"
.....
End sub
hope this can help you
lucy
In the fomat detail section, click color tap, then click that button, CR will give you a code window. Write following code there:
if remainder(recornumber,2,0) then silver else nocolor
hope this can help you
lucy
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.