Reply
Report Generation
Old 09-04-2006, 12:05 AM Report Generation
lushh's Avatar
Novice Talker

Posts: 10
Name: Eunice
hi guys. i am currently working on an human resources information system. i am currently using ms access 2003 and the report form looks like this:




the function of this form, is once a button is clicked, the appropriate report for that button will be generated and will automatically be viewed in ms excel. the problem is that i don't know the VBA code that will perform this function. i read books about access, but unfortunately i can't find the exact answer to my question. so, if anyone could give me some idea on where i can find sample codes for this function, i would very much appreciate it. thanks in advance.

Last edited by lushh : 09-04-2006 at 12:27 AM.
lushh is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-04-2006, 11:13 AM Re: Report Generation
Extreme Talker

Posts: 197
Does this do what you're trying to accomplish?
Code:
Dim xlapp As Excel.Application Dim excelFilePath As String
excelFilePath = "d:\my Documents\aaa.xls"
Set xlapp = New Excel.Application xlapp.Visible = True
Set xlapp = New Excel.Application xlapp.Workbooks.Open excelFilePath
CouponGuy is offline
Reply With Quote
View Public Profile
 
Old 09-04-2006, 09:38 PM Re: Report Generation
lushh's Avatar
Novice Talker

Posts: 10
Name: Eunice
Quote:
Originally Posted by CouponGuy View Post
Does this do what you're trying to accomplish?
Code:
Dim xlapp As Excel.Application Dim excelFilePath As String
excelFilePath = "d:\my Documents\aaa.xls"
Set xlapp = New Excel.Application xlapp.Visible = True
Set xlapp = New Excel.Application xlapp.Workbooks.Open excelFilePath
hi. thanks for the reply. i am just a newbie. where should i place this code? i do apologize for the inconvenience.
lushh is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Report Generation
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13121 seconds with 12 queries