473,474 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to Export Report to Excel.

32 New Member
Hi,

1 - I created search criteria based in one input ( contract status “ Combo box”)
I need to add to it another criteria (Vendor Number “ text Box” ) ( the number will be entered manually )

This is the Code in the Search button.

Expand|Select|Wrap|Line Numbers
  1. Dim strCriteria As String
  2. Dim strReportName As String
  3.  
  4. strCriteria = "[Contract Status]='" & Me![Contract Status] & "'"
  5. strReportName = "PMCONTRACTS"
  6.  
  7. If [Contract Status] = "Select" Then
  8.     DoCmd.OpenReport strReportName, acViewReport
  9. Else
  10.     DoCmd.OpenReport strReportName, acViewReport, , strCriteria
  11. End If
  12.  
  13. ' Reset Form
  14. [Contract Status] = "Select"
3- in the Report how can I have ascending numbers next to the rows. (1,2,3,……)

Please find the attached .




PS : Regarding number (2) question how to Export report to Excel.

Thank you I found the answer in this link http://bytes.com/topic/access/answer...a-output-excel
Attached Files
File Type: zip TEST F.zip (39.6 KB, 81 views)
Dec 13 '10 #1
0 1291

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: AHIhelp | last post by:
I have a .Net report that has several parameters that go into it. When the report is run and I try to right-click and use the built in Export to Excel function in IE 6 - it opens up excel and...
1
by: Big Time | last post by:
Hi, I have a report which once opened I would like to automatically export to Excel. I know that this can be done manually however I would like to have the report automatically export to Excel....
6
by: Robin Cushman | last post by:
Hi all, I need some help -- I'm working with an A2K database, using DAO, and am trying to read records into a Crystal Report and then export it to a folder on our network as an Excel...
13
by: Hemant Sipahimalani | last post by:
The following piece of code is being used to export HTML to excel. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"...
0
by: Aryan | last post by:
Hi, I am doing "Export to Excel" functionality, but while doing this I am getting error. Like I have two types of Report, each type has many sub reports inside. So I am opening new window for Each...
0
by: Aryan | last post by:
Hi, I am doing "Export to Excel" functionality, but while doing this I am getting error. Like I have two types of Report, each type has many sub reports inside. So I am opening new window for Each...
1
by: JawzX01 | last post by:
Hello All, First, thank you for any help you can provide. I'm trying to do a simple export to excel. I've used the classic code that is all over the internet, and of course it worked without a...
1
by: arnabit | last post by:
Hi, I have a problem with excel 2007. I have gridview where a report result is being shown when the report are exported it is saved in an excel file. In excel 2003 it is working fine .But in...
3
by: yovation | last post by:
Hi, I have a 3 table database. 1 parent 1 child 1 child of child I would like to get the data into excel as 1 sheet (similar to a grouped report).
4
by: Tennotrumps | last post by:
I am trying to export a report to excel but the "excel" option is greyed out. I can export the query the report is based on, but not the report. However, if I open the database on another PC I...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.