I build Summary reports from my Access database using VB Crystal Reports Pro and also wrote a VB 5 program that allows the user to add edit and remove records from the database. So what I would like to do is update the summary reports when the user adds, edit or removes any record. Is there a way to do that. I'm ussing "Microsoft
DAO Object Library" to make my database connection. Here is how I'm doing it:
Option Explicit
Dim db As Database
Dim rs As Recordset
Dim ws As Workspace
----------------
Private Sub Form_Load()
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase(App.Path & "\mydata.mdb"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set rs = db.OpenRecordset("Projects", dbOpenTable)
end Sub
Then I'm ussing rs.edit rs.addnew and rs.delete to add and remove a record respectively. So does have any one any sample code to update summary reports that I can look at or give me some ideas how to do this. Thanks in advance for all the help that I can get...
DAO Object Library" to make my database connection. Here is how I'm doing it:
Option Explicit
Dim db As Database
Dim rs As Recordset
Dim ws As Workspace
----------------
Private Sub Form_Load()
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase(App.Path & "\mydata.mdb"
Set rs = db.OpenRecordset("Projects", dbOpenTable)
end Sub
Then I'm ussing rs.edit rs.addnew and rs.delete to add and remove a record respectively. So does have any one any sample code to update summary reports that I can look at or give me some ideas how to do this. Thanks in advance for all the help that I can get...