473,508 Members | 2,329 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a filter query

6 New Member
I have a date field in a certain query. I am creating a advanced filter Query to search one date less than another. I was able to accomplish this. The problem I am having is the blank data fields. In my table the field has dates but a few blanks. I am trying to query a date less than another date or a blank. I am having trouble pulling the blank items in. How do I get a query to filter by blank fields also?
Jan 12 '12 #1
7 1757
NeoPa
32,557 Recognized Expert Moderator MVP
Without the SQL of your query your question doesn't make enough sense. The SQL's always a good idea to post so why not do that and we'll see if we can work out what you meant to ask.
Jan 12 '12 #2
yanni12
6 New Member
I in the Advanced filter section design view. For example
field: Asset status report date
Table: Special Servicing loan query
Sort:
Show:
Criteria: < [Most recent Special servicer transfer date]
or: ???? this is where i want to also search the column for blank fields
Jan 12 '12 #3
NeoPa
32,557 Recognized Expert Moderator MVP
From the Design view select View | SQL. Copy and paste that SQL into a post here and we'll have some clues to work with.
Jan 12 '12 #4
yanni12
6 New Member
Expand|Select|Wrap|Line Numbers
  1. SELECT [Special Servicing Loan Performance Filter].[Asset Status Report Date], *
  2. FROM [Special Servicing Loan Performance Filter]
  3. WHERE ((([Special Servicing Loan Performance Filter].[Asset Status Report Date])<[Most Recent Special Servicer Transfer Date] Or ([Special Servicing Loan Performance Filter].[Asset Status Report Date])=IsEmpty("«varexpr»")));
Jan 12 '12 #5
NeoPa
32,557 Recognized Expert Moderator MVP
Try changing that to :
Expand|Select|Wrap|Line Numbers
  1. SELECT [Special Servicing Loan Performance Filter].*
  2. FROM   [Special Servicing Loan Performance Filter]
  3. WHERE  (Nz([Asset Status Report Date],#1/1/1900#)<[Most Recent Special Servicer Transfer Date])
Simply copy and paste from this page into your query in SQL view mode. When you switch to design mode it should show how the new version looks.
Jan 12 '12 #6
yanni12
6 New Member
This worked well. Thank you for your help.
Jan 13 '12 #7
NeoPa
32,557 Recognized Expert Moderator MVP
Pleased to help Yanni :-)
Jan 13 '12 #8

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

Similar topics

7
5944
by: Simon Bailey | last post by:
How do you created a query in VB? I have a button on a form that signifies a certain computer in a computer suite. On clicking on this button i would like to create a query searching for all...
7
2666
by: smith_lannynospam | last post by:
I was wondering if it is possible to create simple queries with the data included in the select statement, similar to how you use the word VALUES (x1,x2,...) in in INSERT statement. The reason I...
3
2692
by: paulquinlan100 | last post by:
Hi Im trying to programmatically create a query so that it can be exported to excel using docmd.outputto. I can do this easily enough with a saved query, but as the user has a variety of options...
4
1865
by: DeanL | last post by:
Hi Guys, I need some help creating a query that is going to take between 1 and 10 parameters. The parameters are entered on a form into text boxes that may have data or be empty. Is there a...
3
1984
by: Mr 200 | last post by:
Hi all ive just recently started learning java and was happy to find a forum that may be able to give me a little assistance. I have been set an excersize to create a filter processor that relays...
1
3497
newnewbie
by: newnewbie | last post by:
Desperately need help in creating a query to count unique values in a table. I am a Business analyst with limited knowledge of Access….My boss got me ODBC connection to the underlying tables for our...
3
2236
daniel aristidou
by: daniel aristidou | last post by:
im trying to create a cascading combo box that wil filter a subform for the value i select .does anyone know how to do this?
8
3144
by: Gari | last post by:
Hello, I am trying to build a filter query with some AND and OR. I have three text boxes and 5 check boxes. The checkboxes are linked via code to other textboxes for the purpose of the query. ...
1
1522
by: AccessNewbie | last post by:
Hello: I have a form (frmMain) that I have included a subform (frmSubForm) on. What I need on the MAIN form are command buttons that will filter the information on the SUBFORM. It is very...
3
5301
by: NewbieAccessor | last post by:
Hello! I have only been using Access for 24 hours and need some help!! I have a Query that has totalled the number of unique Projects allocated to my group. This is good! Now, this total, I...
0
7123
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
7324
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
7382
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...
1
7042
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
5627
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
5052
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
3193
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
1556
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 ...
0
418
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...

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.