James,
I am using DAO but doing most of the database accessing through code and SQL commands (too many unexpected results using DAO and ADO). I have an ACCESS97 database and to generate reports I design them in ACCESS97 then let the user choose and view them from the VB program using code like this which calls Access,opens the report & maximizes the window:
Dim objAccess As New Access.Application
'establish where clause for date range
vgWhere = "[Child].[DOP] BETWEEN #" & frmRange.txtRange(0).Text & "# AND #" & frmRange.txtRange(1).Text & "#"
'open database;open report;maximize window;use minimal toolbar
With objAccess
.OpenCurrentDatabase filepath:=BHTemp_Path
.DoCmd.OpenReport ReportName:="PlcHistChild", View:=2, wherecondition:=vgWhere
.DoCmd.Maximize
.Visible = True
.DoCmd.ShowToolbar "RepPrev", acToolbarNo
End With
'send Alt(%) space x to maximize Access app then right and down
'to position report for viewing
SendKeys ("% x{right}{down}"

'Give up CPU control
DoEvents
MsgBox "Report complete", vbOKOnly
Set objAccess = Nothing
Exit Sub
LoadError:
MsgBox Err.Description & Chr(13) & "from " & Err.Source & " -- Number:" & CStr(Err.Number)
This works on the machines that have ACCESS97 but not on the machines that have ACCESS2000. The 2000 machines don't seem to start ACCESS. Thanks for any help.
Bob
104122.315@compuserve.com
PS I have started downloading the ServicePack4 VS files. I don't know if they will help.