I have a continuous form with a list of items from a table. One of the
fields in the table is "print". this allows the user to select items from
the list on the form for printing in a report. on that form i have a button
with the following onclick event:
DoCmd.OpenRepor t "rptCustomerRep ort", acViewPreview, , "Print = True"
This opens the report "rptCustomerRep ort" and shows all of the records that
the user had checked of on the form. If no records are checked, the report
opens with one blank record. Exactly as I want it to work.
I am trying to set up the report so that it filters for these records in the
onopen event of the report instead of from the form. i put the following
code in the onOpen event of the report:
DoCmd.ApplyFilt er , Forms!frmPlantL istBot!PrintChe ck = True
If no records are selected on the form (which is open) then one blank record
is displayed, same as before. However, if I check of any of the boxes on the
form (control is named 'printCheck' on the form, controlsource is 'print'
from the underlying table) then all of the records show up on the report,
not just the ones that have been checked off.
what am i missing? 1 4766
take a look at the Filter Property topic in VBA Help; that may work for you,
rather than the ApplyFilter command.
hth
"Jimmy Stewart" <no**@none.comw rote in message
news:oI******** *************@f e04.news.easyne ws.com...
I have a continuous form with a list of items from a table. One of the
fields in the table is "print". this allows the user to select items from
the list on the form for printing in a report. on that form i have a
button
with the following onclick event:
DoCmd.OpenRepor t "rptCustomerRep ort", acViewPreview, , "Print = True"
This opens the report "rptCustomerRep ort" and shows all of the records
that
the user had checked of on the form. If no records are checked, the report
opens with one blank record. Exactly as I want it to work.
I am trying to set up the report so that it filters for these records in
the
onopen event of the report instead of from the form. i put the following
code in the onOpen event of the report:
DoCmd.ApplyFilt er , Forms!frmPlantL istBot!PrintChe ck = True
If no records are selected on the form (which is open) then one blank
record
is displayed, same as before. However, if I check of any of the boxes on
the
form (control is named 'printCheck' on the form, controlsource is 'print'
from the underlying table) then all of the records show up on the report,
not just the ones that have been checked off.
what am i missing?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dalan |
last post by:
The problem to resolve should be pretty easy for someone. I have a
main form which contains a combo box to lookup various vendors. Have
several reports for the vendors, but it is print all or none.
So here is what I have done and would like to stay on the same track.
1. Created a new vendor query (qryVendorRpt) with only the needed
fields including the combo box (cboVendorsMain) from the main form
(frmMain).
|
by: Dalan |
last post by:
I designed a dialog box with a combo to select individual vendors from
a form and its related data for print ouput. Though the dialog box
seems to work okay, I apparently do not have the filtering code behind
the OnOpen Event Procedure of the report structured correctly.
Anyone's assistance will be appreciated, although I would like to stay
on the same track.
Here is what I have done:
1. Created a new vendor query (qryVendorRpt) with...
|
by: Andrew |
last post by:
Hi All:
I am using Access2000 and I find that the command to open an Access report
in preview mode is very slow: DoCmd.OpenReport rptABC, acViewPreview, "",
""
The scenario is this:
- The following codes are written in the VB Applcation.
- Prior to opening the report, I set its recordsource with a sql:
..Reports!rptABC.RecordSource = sSql. The sSql searches for a specific
|
by: SamBenjamin |
last post by:
Is it possible to incorporate a search into a form using a text field
for the search word(s) and a command button to start the search,
returning results that don't exactly match.. For example searching for
Aluminium could return all records that have aluminium in a field. The
reason this needs to be done in a form as opposed to just using
Access' find facility is that it will be used by people that aren't
used to computers and especially...
|
by: |
last post by:
hi,
i have a form on which a user can choose specific criteria such as dates
etc, in order to filter the report that is called from the form.
i do this by using the Where section of the docmd.openreport as follows
DoCmd.OpenReport stDocName, acPreview, , strWhere
where strWhere is a string dependant on the choices the user makes in the
| |
by: Jimmy |
last post by:
Quick question for you. I'm using a small form for users to input a range of
dates for a report (similar to the date range forms used in MS templates)
that has an ok and a cancel button. How can I set up the cancel button so
that is does just that? As it is right now, the event for the cancel button
is simply docmd.close but if I click this button, ms prompts me to enter
parameter values for begindate and enddate. If i cancel out of these...
|
by: Gumbyu |
last post by:
Hello all, I have been working on this issue for about a week and still cannot get anything to group or sort.
At this point, I just want to be able to group a report by using a 'checkbox' on a form. This form is for reporting and I need to be able to group using different columns in my report.
The first question I have is, should the following grouping code be placed in the reportopen sub (of the report) or in the onclick sub (of the form)....
|
by: martin DH |
last post by:
**Urgent Need**
I'll throw out the basics and any assistance is very, very, very much appreciated!
Access 2003 on XP
On a form (frmMain) is an option group of check boxes (ReportFrame) from which a user can choose a specific report to generate. The user selects the report of choice then presses a comand button (CmdRunRpt). The command button runs using the code below:
Private Sub CmdRunRpt_Click()
If ReportFrame = 1 Then...
|
by: franc sutherland |
last post by:
Hello,
I have a report which I filter using the me.filter command in the
OnOpen event.
Me.Filter = "OrderID=" & Forms!variable_form_name!
Me.FilterOn = True
I want to be able to open that report, filtered, from different
forms. How do I carry the name of the current form into the
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |