Return All Records If Combo Box Is Null

I have a form that using a combo box to select specific record, sometimes we need to see all records, i would like if the combo box if left empty to return all records. I typed this expression but it returns no records when combo box is empty.


If i use this expression i get the wrong results when a Loan Officer ID is enterd;
LIke([Forms]![FrmReports]![LoanOfficer] & *
Example of wrong results, if Loan officer Id is 1, then it returns loan officers 1,11, 111

Thanks in advance for any help

View Replies


Combo Box To Return Records In 2nd Combo Box!

Hi All. I'm Sure this is simple enough, but i just cant seem to figure it out.

I want to use a Combo dropdown box with Codes FC000 - FC900. to return records in a second drop down box that begins with the Letters selected in the first dropdown box.

So When a Record is Selected in ComboBox1 eg: (FC0**), ComboBox2 brings up the record to match (FC000).

ComboBox1: ComboBox2:

I hope i have expressed what i want to do.

Any Help would be greatly appreciated.

View Replies View Related

Null Combo Box; Show All Records

Hello All,

Im using a combo box for the criteria for a saved query. Is there any way to show all the records if the combo box value is either 0 or null?


View Replies View Related

Return To Null

Hi all

i would like to know if there is a way to return a field to null

thanks in advance

View Replies View Related

Return To Null

Hi all

i would like to know if there is a way to return a field to null

thanks in advance

View Replies View Related

Null Value To Return 0

When the SSN field is null I would like this query to return : 000000000, is this possible and if so could you show me how? Thanks




View Replies View Related

Query With Is Null Returning Not Null Records

Hello all,

A bit of a weird one, I've got a query and the criteria for showing records is that one particular field is null. However the query is showing records with the values in the field chosen for the Is Null.

Not sure why this is happening, has anyone come across this problem before?


View Replies View Related

Combo Criteria If Not Null Or Is Null

I am having problems with setting up a set of combo boxes.

What I am trying to do is if combo Productline is empty then in combo PartNumber would show all products but if combo Productline has a value selected then in the combo partnumber would only be able to select the partnumbers in that productline.

View Replies View Related

Field Criteria: Is Null; There Are Null Values In That Field; No Records Are Returned

I think the title pretty much sums it up....

I have a query where data is first sorted by user input; first field's criteria: [fieldname], then by another field's criteria: Is Null.

I know there are records containing null values in the second field, as I have run a select query with the criteria: Like "*", to make sure they are null, and not zero-length-strings.

The query is refusing to return any results...

Any ideas?

View Replies View Related

Need Combo Box To Return Text Instead Of Numbers - Version: 2000 (9.0)


Is there an easy way to convert the number that a combo box returns back to text on my report? Is it easier to try any make the change in a query and use the query to build my report. Any help appreciated.


View Replies View Related

Return All Matching Records

I have a database called LettersDatabase this databse holds all the letters that have been made including the path to the doc. I use SSN to ID the letters to customers on the Contacts Database.

Contacts database also uses the SSN to id the contacts

I have a form that creates new letters for customers in this form I have listbox that queries the LettersDatabase for all matching records based on the forms contact SSN to see how many letters have been made for that customer.

The problem is that my listbox only shows the first record matching that SSN but there are more records in that LettersDatabase with the same SSN that I need to have diplayed on the listbox as well.

I may be writing the query incorrectly.
Here what I have for the query on the listbox


I try adding (&"*") to the end of the query but that does not help.

If anyone out there has the solution to this problem it would be greatly appreciated

Thank you

View Replies View Related

Queries That Return No Records

Hi All,

I am wandering if it possible to check programatically whether a query returns a NULL result?

I am writing a program(VB) that involves an IFF statement where if there are records in the query it does a specific calculation & if there are no records returned in the query it does something else. Is this possible to achieve?

Thanks in advance:D



View Replies View Related

Only Return Current And Following Records


I have a query with the following sort of information:-

10/2007 55

As today being the 1st October, I would like the query to return the values for Oct and Nov.
The same values would be returned on the 31st Oct, but then the following day, only the Nov value would be, basically, it only returns the values of the current month and following months..

I am assuming I put something in the criteria of the query under the month? I have tried a number of things, with none working!!!

Thanks for reading....


View Replies View Related

Query That Return No. Of Records In Run Time

Hi all,

May I know some to construct any functions or query string that can track the no. of records that mean certain criteria in the run time.

Basically I want to track the records in a subform (in datasheet view). Should the no. of records is 0, then I can disallow user from saving it onto the table for better record keeping.

Thanks !!

View Replies View Related

Combo Box - Null When I Want 0

I have field in my table, which is required (in access, or not allow null sql server), and have defaults of 0.

I have a form with a combo box bound (thru query) to this field - how do I let the user choose something from the list and then decide they actually didn't want to choose anything - and so clear the list.

Hear I get an error saying the field cannot accept null - how do I just force it to accept 0 - ie no choice??


View Replies View Related

Count Function To Return Unique Records

Not sure if I worded my subject correctly. Here's my problem.. I've used query to combine 2 tables of data..

Here are my fields..

I've assignment_num field, project_num field, project_name field, emplyee_name field.

here are my data..

assignment_num field: 1001, 1002, 1003, 1004, 1005
project_num field: 20,20,15,16,15
employee_name field: tom peter, tom peter, tom peter, julie, sally

What I want is to display the employee name with 2 projects or more...

What i have done?
I've done a group by and then count project_num field.. I also added a condition whereby the countofproject_num > 1.. everything went well except that the countofproject_num display 3 instead 2..

pls help.

View Replies View Related

Return All Records Where An Id Field Occurs More Than 3 Times

I just can't get my head round this one and can't even think of a keyword phrase to search on!

SELECT CompID, CaseRef, ServicesID, Summary
FROM qryAllStats;

In my query I need to return all records where there are more than 3 instances of field 'ServicesID' .

For instance in the recordset ServicesID 47 occurs 5 times while ServicesID 36 occurs 4 times and all other ServicesIDs occur 3 times or fewer.

I would need to return all of the records with ID 47 and 36. Is this do-able?

View Replies View Related

Return Records To The Screen - Version: 2000 (9.0)

I'd like to return the records from a very small table to the screen.

What would be the best way to do this (in code)?



View Replies View Related

Return All Non Numeric Records - Version: 2003 (11.0)

Is it possible to check for non numeric values in a field and return only those records so that I can run an update on them to zero "0"?

Thanks for any help,

View Replies View Related

Combo Box Null Problem


Looks like a grate forum for access topics and thats exactly what I need now! I'm new to Access and are going grazy!!

I'm trying to add some functions to an excisting database that someone else has done.

The Form creates an report from an db containing a one per day status information from water and electrical meters. Filling in start and stop dates gives a nice report over all meters and their status.

Now I want to add a combo box so the user can select one meter or leaving it empty to get all meters. I can make it work when selecting one meter in the list, but leaving it empty shows none. Or selecting any don't help all of the meters shows up anyway.

I used the search engine on this forum and found similar problem, but couldn't figure it out. Tried many combinations of the IIF statement, but didn't help.

Please help me!!


View Replies View Related

Option To Return Part Or All Records - Version: 2000 (9.0)

Hi all
Happy mothers day

I have a table with 24 areas, would like to retrive a selected area or all areas with a s ingle prompt

I have this so far

[Select area;] Is Null

I only get all records




View Replies View Related

Help Please With Multiple Outer Joins To Return All Records From Main Table

I have this query in design view and in an asp page and it works fine:

SELECT dbo_feedback.*, dbo_origin.originName, dbo_product.prodname, dbo_category.catName FROM dbo_product INNER JOIN (dbo_origin INNER JOIN ((dbo_feedback INNER JOIN (dbo_category INNER JOIN links_cat ON dbo_category.catID = links_cat.CatID) ON = links_cat.FeedbackID) INNER JOIN links_product ON = links_product.FeedbackID) ON dbo_origin.originID = dbo_feedback.origin) ON dbo_product.prodID = links_product.ProductID;

BUT, I want to return all feedback entries, even if they have no matching Product or Category. :confused: When I change the inner joins to outer joins I get a syntax error in the browser window. I changed the join type in the relationship diagram in Access and tried to recreate this in query designer, but Access says the statement cannot be executed because of ambiguous outer joins.

FYI, one feedback can have many products, many categories, and only one origin. I have the joins correct and enforced.

Please help, thanks!!!

View Replies View Related

Return Top 2 Records From Values From A Related Table - Version: 2003 (11.0)

Hi, I'm pretty new to access and have run into this little problem.

I have a report which lists information about a record on it. Also on that same report for that record i want to show some information from another table (but it is related through a one to many relationship to the table that controls the form). The thing is I dont want to show the 'many' records from this table I only want to show the 2 most recent records (all the records have dates on them).

I am thinking of either just using a look up to find the values and put them directly into the report that way (im not too sure how to use the lookup to find the two most recent records and im not even sure if this method works), or using a sup-report (once again, not to sure how to make the sub report show the 2 most recent records only).

Anyway, what is the best way to do this. Any help is very much appreciated

View Replies View Related

DAP Dropdown Box Doesn't Return All Records - Ldb Issue? - Version: 2003 (11.0)

I have a dropdown box that's populated with server names in a table 'ServerInfo'. There are 126 total records in the table/dropdown (This is part of a Group Level).

When I go online, and first visit this page, it will display all 126. But then when I refresh, I only get 107 out of the 126 servers in the table. It's incomplete.

Has anyone seen this before? One of my guesses is that it's related to locking and the .ldb file somehow cuts off entries to my query? What type of thing could be preventing these 19 servers from showing up as well? If you need more details about the DAP, I will provide.


View Replies View Related

Combo Box Back To Null - Version: 2003 (11.0)

I have an option button where if clicked it opens a bound combo box. The code;

Private Sub optOpen_AfterUpdate()
If Me.optOpen = 0 Then
Me.cboAssgn.Visible = False
Me.cboAssgn.Visible = True
End If

What I am shooting for is to get the value from the combo box cleared if the user unselects the option button back to it's unchecked state.


View Replies View Related

Can I Include Null In Combo's Not In List Event - Version: 2007 (12.0)


A newbie here after a bit of help please.

I have a combo dropdown which works fine if I type in something that is not in the list.
However, if I leave it blank I can tab or click to other controls.

The combo is the first in the form's tab order.

I can't save the record without an entry in the combo but I'd like to stop it leaving the combo without putting something in it so I don't have to come back to it when I try to save.

I have tried checking for IsNull in its On Exit event and I can get it to pop up an error message but the cursor still goes on to the next control, leaving the combo blank.

I know I'm missing something really basic here.

Thank you.



View Replies View Related

Cascade Combo - Leaving Null Values - Version: 2002 (10.0) XP

This demonstrates how to leave the first combobox unselected and continue to cascade a set of three combo boxes.

View Replies View Related

Speed Up Of Combo Box (Thousand Records In Combo Box) - Version: 2003 (11.0)

i have a combo box and have more than 30,000 value .and speed go to dead when i look up a record in Main and Sub Form.
Combo box attached with.
SELECT bill2.invoiceno FROM bill2;

how can i speed up of combo box which have thousand of records
i am using this code to look up a records in main and sub form(Orders & OrdersDetai)
Dim strSearch As String
strSearch = "[invoiceno] = " & Me![searchbill]
'Find the record that matches the control
Me.RecordsetClone.FindFirst strSearch
Me.Bookmark = Me.RecordsetClone.Bookmark

View Replies View Related

Displaying Records That Have A Null Value

I'm trying to get a query to display only the records that have a null value in a certain field.

I know this has something to do with the Nz function, but I can't figure it out.

View Replies View Related

Count Of Null Records


Been taking abreak from Access for a few years now and cant get my head round my problem.

I have been asked to manipulate data from a Training Recods database.

Basically, training consists of 26 modules, there are currently 180 people who need training. Each person has been assigned a unique number, once a module has been completed, the date it was completed is entered into the database. There are currently lots of modules which havent been completed, what I need is a way of pulling that data from the DB.

I need to know how many people need to complete each module. For example, Module 1 might need to be completed by 15 people, Module 2 might need to be completed by 27 people etc.

I have enclosed the DB with the table and the form that I am looking to populate with the data.

Anyone have any ideas, I just can't get my head round it!!!!

View Replies View Related

Count Null Records AND......

Hi guys,

I know how to count records so that null records would be counted but I do not know how to do this:

I have customers and works. I want to create a query that will show ALL customers and number of works done for that customer (sometimes there is no work done for customer).

How can I do it?


View Replies View Related

Returning Null Records?

Hello everyone.

I have just joined the forum and spent the last day or so looking around for an answer that I wasn't able to find.

I have been asked by my employer to capture details of who has signed our confidentiality policy. I have made a very simple database which only has three tables, EMPLOYEE, POLICY and VERSION.

EMPLOYEE has three fields, NAME, NUMBER and BRANCH. POLICY has three fields, NUMBER, DATE and VERSION. VERSION has two fields, VERSION NUMBER and DATE. I won't worry about the VERSION table any further in this post as it doesn't figure in the problem query.

Primary key for EMPLOYEE is NUMBER. Compound key for POLICY is NUMBER and DATE (ie. the employee can sign the policy more than once and we want to record when this was, and whether the policy version changed).

I have an Access "type 3" join defined in table relationships from EMPLOYEE.NUMBER to POLICY.NUMBER.

I am trying to write a query that returns the employees that haven't signed the policy. I have no problem returning the employees that have (ie. employees whose numbers match the numbers in the POLICY.NUMBER field), but it is the EMPLOYEE.NUMBER entries that are not present in POLICY.NUMBER that are causing me grief.

I have tried using the expression builder in the query builder window (it gave me <>[tblPolicy]![Number]) which doesn't return any records (I have over 490 in the database and should be getting back at least 50 or so).

Sorry if this question is too basic.

Can anyone offer me any advice here?

Thanks in anticipation.


View Replies View Related

Subforms And Null Records(ish)

Hi All

I have a form for booking employee holidays and in that I have a subform that displays their current holiday entitlment, which work great until I enter in a new record on the main form to book some holidays and I'm ask for a Name from a parameter box?? which I press cancel or ok at which point the subform goes blank (which is whatI want) but when I enter the employees name from the combo list it doesn't update the subform?

my question is; how do i remove the parameter box and update the subform once I have selected the employee name??


View Replies View Related

Copyrights 2005-15, All rights reserved