473,608 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I pass a form's data using Access 2007's filter cmds in the ribbon to a report?

2 New Member
I have a form "PartsAndInvoic es that has all the parts in the database listed in split form view. I want the user to use Access 2007's filter section on the ribbon to choose mutiple filters. Me.Filter may equal ([Lookup_cboDNRCI D].[DNRCNUM]="dnr1940"). I tried pass ing me.filter to the report but get all the records in the report not the custom filtered set.
Private Sub cmdPartsNInvoic eReport_Click()
Dim strFilter As String
strFilter = ""
If Me.Filter = "" Then
MsgBox "Apply a filter to the form first."
Else
DoCmd.OpenRepor t "rptPartsAndInv oicesAll", acViewReport, Me.Filter
End If
End Sub

Lookup_DNRCID.D NRCNum is something that Access makes up by appending LookUp_ to an existing field. If you look in "Advanced, Advanced filter sort in the ribbon, their is a query there built by Access. (see attachment)

The form has a combo box "cboDNRCNum " that looks in a table for dnrcid which is a key number and DNRCNum which is text for license numbers on vehicles that we have built.
Can I somehow use Access's filter set by the ribbon or do I need to build my own filter combo boxes on the form (really time-consuming) and then pass those to the report?
Attached Images
File Type: jpg PartsNInvoicesQry.jpg (55.3 KB, 131 views)
File Type: jpg PartsBInvoicesForm1.jpg (119.3 KB, 105 views)
Mar 9 '11 #1
0 1388

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

Similar topics

1
8209
by: KS | last post by:
Hi, I have creatd a custom Outlook form with a few custom form fields. When completed the form is sent to me and goes into my Inbox. This works fine. Now Iam trying to write some code in Access to import l;oop though my inbox and pick up all the usesr defined field data from any messages froma specific subject. I have have mixed and matched some code I found on the net however it doesn't seem to work properly. problems I face are:
7
11418
by: denuk2003 | last post by:
Hi Everybody I have a 2003 application that I am trying to run under 2007, The code seems to work OK but the Ribbon is a big problem. It just takes up too much space away from the application. Does anyone know a quick and easy way to code a 'minimize' of the Access 2007 Ribbon when the application starts so that the user cannot restore the Ribbon or use any part of it?
1
3851
by: David1129 | last post by:
I'm working on testing a large application with Access 2007. It has been running under 2003 and XP with no obvious errors. However with 2007 many forms seem to have lost the ability to filter. When the form is loaded, the record source specifed, a filter applied, and filtering set to on, either no records are displayed, or ALL of the records displayed. Click on the "Toggle Filter" on the ribbon and voila, the resordset is displayed. ...
5
3882
by: Ira Solomon | last post by:
Hi: Any quick opinions on Access 2007? Has anyone got this to coexist with Access 2003? Thanks Ira
2
6262
by: Wayne | last post by:
I've been having a click around Access 2007 this afternoon and have discovered some things that range from annoying to alarming. My Access 2003 menu bars, which I, like many others, use extensively, are now hidden behind an "Add Ins" tab on the Ribbon. Hardly an intuitive place for a user to find them. Unless my memory is failing me, I'm sure that Access 2003 menus displayed normally in the 2007 Beta. The other thing I've discovered...
12
21126
by: ARC | last post by:
Hello all, In access 2007, does anyone know where to find a list w/pictures, of the names of pics that can be used in the ribbon? Other than the default happyface, I only found one other: AddressBook. I'm looking for more names to use in the line that looks like: <button id="Customers" imageMso="HappyFace" ...... Also, if you use the form design tool, it puts a nifty little logo in, but
1
1806
by: MadMax71 | last post by:
Hi all, i'm new to this forum, i would like to know if i can add a button (or event) to my form to invoke the "Text filters -> Contains" popup, to not require users to right-click on mask fields. This is a request of my customer, but i didn't find any solution to do this..
9
4484
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd like to know is the stability, speed & ease of use of both the products. I believe Access 2007 has a new file format too and that it may be slower.
2
4509
tuxalot
by: tuxalot | last post by:
New to Access so please go easy. I have a form with an option group. I've wish to have it's result display on my report. options a, b, c I've created a field in my table to accept the data from the form. In my table, I see 1, 2, 3 when I save a record. Good enough. Now, in my report, I wish to have checkboxes representing options a, b, and c. When opening the report, a checkmark should appear within the box corresponding to the option...
0
1181
by: sarvmardan | last post by:
how to open a report in access containing filtered data using two combo boxes on form and a button to click. let i have two fields and other is . two comboboxes are combo11 and combo9. plz post the codes so that i can open my report with filtered data in access 2007.
0
8063
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8498
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8152
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,...
0
6817
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, 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...
1
6014
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3962
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4025
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1598
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1331
bsmnconsultancy
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...

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.