473,385 Members | 1,492 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,385 software developers and data experts.

Query Criteria [Forms]![Collections_MASTER]![Combo118] OR show All

In MS Access 2010 I am trying to use the
Expand|Select|Wrap|Line Numbers
  1. =[Forms]![Collections_MASTER]![Combo118] 
  2.  
in the criteria for field [Teams] and it works fine.

But if the combo is blank it shows nothing, can I make it so the blank combo shows everything, ie no criteria is applied...

Thanks in advance
Feb 16 '12 #1
6 1364
I tried the code below but no luck;
Expand|Select|Wrap|Line Numbers
  1. IIf([Forms]![Collections_MASTER]![Combo118] Is Not Null,[Forms]![Collections_MASTER]![Combo118])
  2.  
Feb 16 '12 #2
Rabbit
12,516 Expert Mod 8TB
Is it blank or is it null? They are different and you need to use the right one. Also, your IIf syntax is missing the return value for the false parameter.
Feb 16 '12 #3
I found that this works;

Expand|Select|Wrap|Line Numbers
  1. [Forms]![Collections_MASTER]![Combo118] Or [Forms]![Collections_MASTER]![Combo118] Is Null
  2.  
However when I try to use on more than one field it doesn't like it.
Im also using After Update - requery on unbound combo boxes (not sure about this bit???)

Thanks
Feb 16 '12 #4
NeoPa
32,556 Expert Mod 16PB
SmartCarFun:
However when I try to use on more than one field it doesn't like it.
You'll need to explain yourself better than that if we're to understand what you mean.
SmartCarFun:
Im also using After Update - requery on unbound combo boxes (not sure about this bit???)
Again, what is this even about?

NB. The solution you came up with shows you're thinking well and on the right lines. I have no idea what problems you're having with it due to how it was expressed.
Feb 16 '12 #5
Thanks for your reply, I appreciate it's difficult to understand...

Not to waste your time, ive moved on to VBA code so I have opened a new thread you might be able to look at, its the same problem (a little further along) but a different approach.

Thanks a mill


http://bytes.com/topic/access/answer...se#post3703762
Feb 17 '12 #6
NeoPa
32,556 Expert Mod 16PB
Running late so rushing away.

I'll look at the linked thread when I can. I notice you say it has two questions in it though. It may be wise in the mean time to reorganise it so that each question is in its own thread. We only allow one question per thread (Everybody benefits from this approach). Nice idea to split to a new thread though ;-)
Feb 17 '12 #7

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

Similar topics

5
by: Paolo | last post by:
Friends, I have a form named Welcome on which there are various pages. On one page, simply named PAGE1, I have added a list box named LSTINITIALS, which stores the initials of my database users....
0
by: Pooya | last post by:
Hi Everyone, I have tried searching for the answer in this newsgroup, but I don't think I have found an answer that works for me. I have several forms that are populated by the same query...
7
by: keliie | last post by:
Hello Just a quick question that I've spent a few hours trying to solve with no luck (although one would think this should be fairly easy). I have a form with a subform. The subform is based...
3
by: stevecat | last post by:
Hi there, I have created a form, "search" and a query "search_product". The query returns the product information based upon the criteria for three of the fields, author, title or isbn. The field...
2
by: Mark Roughton | last post by:
I have a form where the users need to view records for various criteria, one of which is a date field on which they may wish to view all related data for the selected date, for all dates upto and...
4
waynetheengineer
by: waynetheengineer | last post by:
Hi, I was wondering if anyone had any suggestions on my database: I have a form that accepts user input into a single text box. When the OK button is hit, a query should search for all records...
3
by: ericargent | last post by:
Hi I'm using Acces 2003 I have Query where the several parameters for the criteria are supplied from a form. One parameter source is a combo box. What I am trying to do is if: An item is...
4
by: candide_sh | last post by:
Hi, I have a combobox cbosaSAK_FKEY with these values: 1 2 3 The query criteria has to be changed into: 1 =1
4
by: tbeers | last post by:
Is there a method to pass along a criteria argument directly to the query criteria rather than through filtering a form or report? In other words, I would like to click a "print" button and in the...
9
ajhayes
by: ajhayes | last post by:
Hello everyone, This is my first time posting here and I'm hoping someone can help me out. I'm a relative newbie to Access and am pretty much learning as I go along, so please bear with me. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.