|
-
Simple report problem
Using VB, I run a query in Access, and then show a VB Report using the query
results.
(The query makes a new table each time it is run.) Inside access, the data
is correct.
The VB report is correct THE FIRST TIME I RUN IT. If I ask for the report
on a differtent PO#,
I get the original PO data, not the new one. This has got to be something
realyy simple, I
just don't see it.
Code:
Private Sub mnuPrintPO_Click()
Dim ac As Access.Application
Set ac = New Access.Application
DoEvents
ac.OpenCurrentDatabase ("c:\abstract\abstract.mdb")
ac.DoCmd.OpenQuery "qryMakeSinglePO"
DoEvents
drSinglePO.Refresh
drSinglePO.Show
ac.CloseCurrentDatabase
DoEvents
Set ac = Nothing
End Sub
Similar Threads
-
By Imran Jalali in forum VB Classic
Replies: 1
Last Post: 07-13-2005, 06:23 AM
-
Replies: 0
Last Post: 07-05-2005, 11:07 PM
-
By cookieman in forum Java
Replies: 2
Last Post: 02-26-2005, 10:33 AM
-
Replies: 3
Last Post: 02-10-2001, 08:24 AM
-
By Eric in forum Database
Replies: 1
Last Post: 11-10-2000, 02:05 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks