473,408 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Issues Creating an Access Report Programmatically

63
I am trying to create an Access report programmatically. So far I have been able to accomplish everything except the following:

1) I cannot determine the code to create a Page Footer
Expand|Select|Wrap|Line Numbers
  1. Set TextBox = CreateReportControl(strDynamicFinalReport, acTextBox, acFooter, , strFieldNM, intFieldPos, intFieldLine, intFieldRptWidth, intFieldHeight)
Gave the following Error:
Error Number: 2148 The number you used to refer to the form or report section is invalid

2) I cannot determine the code to create code for the On Close Event
Expand|Select|Wrap|Line Numbers
  1. Reports(strDynamicFinalReport).OnClose = "DoCmd.Restore"
Puts the command DoCmd.Restore into the Close property of the report which errors when the report closes.
Oct 18 '10 #1
0 1333

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

Similar topics

0
by: Dave Stone | last post by:
I have a chart in an Excel worksheet which I want to appear in an Access report. The report has an OLEUnbound object which is where I want the chart to appear. The snag is that it needs to be done...
15
by: Mark C | last post by:
All, I have exhaustingly been looking through the newsgroups in search of a way to systemically output an Access 97 report to a pdf file using the full version of Adobe Acrobat. I want the user...
7
by: msrado | last post by:
Hi All, I have a report in Microsoft Access 2000 that appears with standard blank font in a print preview and shaded grey font in a printout. I don't want it to be shaded and can't figure out...
0
by: George | last post by:
I have a Microsoft Access report and I have automated this report using C#. When the report opens (via DoCmd.OpenReport) I am confronted with several prompts for criteria (example: "Please enter...
0
by: George | last post by:
I have a Microsoft Access report and I have automated this report using C#. When the report opens (via DoCmd.OpenReport) I am confronted with several prompts for parameters (example: "Please enter...
0
by: George | last post by:
I have a Microsoft Access report and I have automated this report using C#. When the report opens (via DoCmd.OpenReport) I am confronted with several prompts for parameters (example: "Please enter...
5
by: John | last post by:
I have 2 tables, one with dates and information about those dates, and one with people information. I want to create a report listing each date and the people who attended on that date (who have...
2
by: axp | last post by:
I would like to display a Programmatically calculated field inside an access report. This means that for each section (or Person) the code needs to be run with different data in order to calculate...
2
by: Andy | last post by:
Hi guys I having a problem creating a report in Access 2003 project talking to a SQL database through and ODBC connect. After hours of trying things from Access Help, MSDN and Google I still...
0
by: ncsthbell | last post by:
I have a request to programatically create a .pdf file from within a current access application. The problem is that they want this one .pdf file to contain both an access report (created by the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...
0
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...

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.