|
-
Jun 20th, 2002, 04:21 AM
#1
Thread Starter
Member
Opening Access reports
How do I open a access report in vb, but only the report and not the the access window?
Thanx
-
Jun 20th, 2002, 04:27 AM
#2
you can use crystal reports its on the VB6 CD and it has a component where you install your report easy
-
Jun 20th, 2002, 05:11 AM
#3
Fanatic Member
Well, seeing as DocA probably has his reports already set up in Access, I guess he wouldn't want to convert everything over to Crystal reports...
To answer your question:
Code:
Dim acc As New Access.Application
With acc
.OpenCurrentDatabase "C:\NWIND.mdb"
.DoCmd.OpenReport "Catalog", acViewPreview
.DoCmd.Maximize
.Visible = True
End With
-
Jun 20th, 2002, 05:33 AM
#4
Thread Starter
Member
No, I dont want the access window to open, only the report window. The user shouldnt be allowed to see the database.
-
Jun 20th, 2002, 05:36 AM
#5
Fanatic Member
Access reports are an inherent part of Access aplication, therefore I am almost 100% sure you have to endure opening Access. There are ways in which you can hid the data from the user, (such as shutting the application once the report is closed) but the old F11 - Show Database Window trick will always allow them to see the underlying data.
-
Jun 20th, 2002, 05:41 AM
#6
Thread Starter
Member
Thanx, any other sugestions?
-
Jun 20th, 2002, 07:07 AM
#7
If you are going to stay with Access reports, you have no other options if you wish to preview your report rather than sending it to print.
What Gaffer told you IS 100% correct.
-
Jun 20th, 2002, 07:11 AM
#8
Frenzied Member
The other option would be to convert to Crystal reports, as has been suggested.
-
Jun 20th, 2002, 12:55 PM
#9
Thread Starter
Member
How do i convert it? Is it just on the vb cd, is there a plug in to convert? On the professional or enterprice cd, i couldn't find it on the prof CD, maybe just didin;t look right?
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
|
Click Here to Expand Forum to Full Width
|