# 报表出问题啦

Posted by Fred Tsai on March 26, 1999 at 16:12:32:

各位高手真的要帮忙一下啦
我用VB要跑一份报表,我以经建立了一个临时资料库存取要列印的资料(it works & shows),可是当我按下列印纽时就出现"报表档名不正确"
这会是什嘛原因???下面是出[问题的那一段程式..
感激不尽....
sql_str = "select * from MonthReport"
Set db = DBEngine.Workspaces(0).OpenDatabase(App.Path & "\AKT_Temp.mdb")
Set rs = db.OpenRecordset(sql_str)
For i = 1 To Grid1.Rows - 1
Grid1.Row = i
rs.AddNew
Grid1.Col = 0
rs.Day = Grid1.Text
Grid1.Col = 1
rs.EngineerName = Grid1.Text
Grid1.Col = 2
rs.ID = Grid1.Text
Grid1.Col = 3
rs.Project = Grid1.Text
Grid1.Col = 4
rs.[Direct Hours] = Grid1.Text
Grid1.Col = 5
rs.[I&W Hours] = Grid1.Text
Grid1.Col = 6
rs.[Indirect Hours] = Grid1.Text
Grid1.Col = 7
rs.[Overtime Hours] = Grid1.Text
rs.Update
Next

Report1.DataFiles(0) = App.Path + "\AKT_Temp.mdb"
Report1.ReportFileName = App.Path + "\monthp.rpt"

Report1.Action = 0

Follow Ups:

- Re: 报表出问题啦 edyln 18:06:14 4/14/99 (0)
- Re: 报表出问题啦 半百 17:09:32 3/29/99 (0)