Hi,
I've created an VB 6 app and I'm using Crystal Reports 8.5 for the
reporting.
The report must display/print data for the current user.
In VB I'm using the following code to preview the report:
Screen.MousePointer = vbHourglass
gvBigRep.RecordSelectionFormula = "{q_tf10.user_id} = '" + gv_UN +
"' "
crvPreview.ReportSource = gvBigRep
crvPreview.ViewReport
Screen.MousePointer = vbDefault
(gv_UN is the user id of the user)
(q_tf10.user_id is the parameter in the report)
The problem that I have is that the app with the report works fine on
some computers but ignores the formula on others.
The computers are running Win 2000 Pro. I've updated the Windows and
crystal service packs. I'm using MDAC 2.7 on all computers.
I've printed the formula on the report. And it is passes correctly
form VB to Crystal.
The report runs correct out of Crystal when I type in the parameter
value when promted, but is ignored when I type in the parameter
running the VB App.
Why is Crystal behaving like this ? How do I correct this ?
Martin Oosthuizen