# Re: 用Crystal Reports接上ODBC出报表,内容不能即时更新?

Posted by 吕军贤 on May 17, 1998 at 09:37:04:

In Reply to: 用Crystal Reports接上ODBC出报表,内容不能即时更新? posted by kkcheung on May 17, 1998 at 09:14:52:

: 每当资料库更新后,再打印报表,但内容不是最新的,请问为什么.

您可用以下的方式试试

CRept1.Connect = ";DSN=SQL;UID=sa;PWD=;APP=Visual Basic;WSID=LUBEN;DATABASE=SQL资料库"
CRept1.ReportFileName = App.Path + "..\" + "Print1.rpt"
CRept1.SelectionFormula = "{异动1.编号} ='" & Text1.Text _ & "'

Follow Ups: