puakenikeni
Registered User.
- Local time
- Today, 00:14
- Joined
- Jun 24, 2008
- Messages
- 25
I'm using a query as the source of my subform. It queries based on what is selected from four comboboxes. The query will display almost all of the records--except for the records that have a null value in one of the fields. There are a total of 449 records in my database. Out of the 449, 152 records have a null value in the "Disposition" field, so without any criteria chosen, the subform (as well as the query) will only show 298 records.
This is what my query looks like:
Is there a way I can change the query to also bring up all records, even with null fields? Is there a way I can approach this in the query portion, or do I need to do it through VBA on the form?
This is what my query looks like:
Code:
SELECT Master.ProgramName, Master.[Item Description], Master.ItemClass, Master.PropertyClass, Master.AcquiredFrom, Master.Gtag, Master.ItemClass, Master.ManufacturerVendor, Master.ModelNumber, Master.SerialNumber, Master.PartNumber, Master.Quantity, Master.UnitCost, Master.CurrentLocation, Master.Disposition, Master.DispositionCloseout, Master.DispositionLocation, Master.DispositionCloseoutDate, Master.DispositionComment
FROM Master
WHERE (((Master.ProgramName) Like "*" & [Forms]![frmInventory]![cboProgramName_tab2] & "*") AND ((Master.ItemClass) Like "*" & [Forms]![frmInventory]![cboItemClass_tab2] & "*") AND ((Master.PropertyClass) Like "*" & [Forms]![frmInventory]![cboPropertyClass_tab2] & "*") AND ((Master.Disposition) Like "*" & [Forms]![frmInventory]![cboDisposition_tab2] & "*"));
Is there a way I can change the query to also bring up all records, even with null fields? Is there a way I can approach this in the query portion, or do I need to do it through VBA on the form?