473,408 Members | 2,813 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.

How to specify infomation in a report using VBA...

41 32bit
I want to have a specific set of registers to be showed in a report, but if I change the filter before the report is oppened, a error will ocurr and if I change the filter afterwards, the file has already been printed.
What is the way to solve that?

Best Regards
Ricardo de Milano
Jun 27 '14 #1

✓ answered by NeoPa

The DoCmd.OpenReport() function (which you use to open reports) has a parameter (WhereCondition) that allows you to specify filtering information for the particular instance of that report. That means it won't change the design of the report itself, just apply that filtering as and when it runs this particular line of code.

3 1026
NeoPa
32,556 Expert Mod 16PB
The DoCmd.OpenReport() function (which you use to open reports) has a parameter (WhereCondition) that allows you to specify filtering information for the particular instance of that report. That means it won't change the design of the report itself, just apply that filtering as and when it runs this particular line of code.
Jun 27 '14 #2
Ricardo de Mila
41 32bit
Dear Mr. NeoPa...
Thank you very very much for your answer. I haven't tested it yet, but the answer is so clear that I don't believe I will have problems.
Thank you very much.
Ricardo de Milano
Jun 30 '14 #3
NeoPa
32,556 Expert Mod 16PB
You're very welcome Ricardo :-)
Jun 30 '14 #4

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

Similar topics

1
by: John Baker | last post by:
Hi: I need some help writing code that will "print" a report using Cute FTP. Specifically, I need to set up a "Button" which, when clicked, will: a. Create an FTP "Print" file of the...
0
by: ajaac | last post by:
What am I doing wrong? Is there a better way? I created a report using a table, and this works OK. But I would like to be able to use a dataset for this report. I will populate the dataset...
2
by: Hellotalktome13 | last post by:
Using a simple ASP.net page with a crystal report on it. Loading from IIS using Integrated Secruity in the reports connection string it populates the report in the browser. What User ID and...
5
by: 205210864 | last post by:
how do i specify coordinates when using write#. need to write at specific coordinate sin a file. eg. heading, starting at column 3 row 4. please ,please help
0
by: =?Utf-8?B?QWJieQ==?= | last post by:
Can ne1 tell me what is the best way to handle barcode fonts in crystal report? I installed IDAutomationHC39M barcode font on my machine and used it in the report. when i used it it shows me the...
6
by: Peter Herath | last post by:
I want to create a dynamic report using a crosstab query...... pls someone look into my attached example database and help me out to do the report generation.... example is like dis...: there...
1
by: Peter Herath | last post by:
I have created a report using sample codes taken by the forum. one problem is that the report displays the field/column names in the table in columnar format(field names display in rows.) but i want...
0
by: amiga500 | last post by:
Hello, I am developing a crystal report called Expense Report (I am not an expert Crystal Report designer) if someone could help me in this problem I would be greatly appreciate it. The report...
0
by: balurajeev | last post by:
Hi friends , I want to create a Crystal report in C# using Parameterised Storred Procedure This is my Stored Procedure ALTER proc . ( @fname varchar(50), @lname varchar(50),
0
by: SLauren | last post by:
Hi, I am new to crystal report. Can anyone please suggest how can i generate a crystal report using dataset without a report object? I have a crystal report (.rpt) with a mapped dataset. How can...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
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...

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.