Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



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

Posts: 10
Name: Eunice
Trades: 0
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
 
 
Register now for full access!
Old 09-04-2006, 11:13 AM Re: Report Generation
Extreme Talker

Posts: 246
Trades: 3
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
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 0.11999 seconds with 12 queries