Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report displays empty after updating a recordset

Status
Not open for further replies.

143Aroul

Programmer
Jul 17, 2003
16
FJ
Hi,

strSQL = " SELECT * FROM Emoloyee"
rsMaster.Open strSQL, conn, adOpenDynamic,adLockOptimistic,adcmdText
rsMaster.fields("Name") = "Aroul"
rsMaster.Update

crystalreport1.connect = conn
'other statements
crystalreport1.printreport

When i call like the above the report is showing empty,
but if i introduce a message box in between rsmaster.update
and the crystalreport1.connect like below, the report is printing


rsmaster.update
msgbox "OK"
crystalreport1.connect = conn
'other statements
crystalreport1.printreport

 
Hi
I have also came across this problem.
If immediately we print the report after update, the report is not refreshed. But if a small delay introduced, then it works fine.
Try out by introducing a delay of 0.5 sec to 1 sec.
If u find a better solution please let me know as well.

Regards
Som
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top