Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

select "all" in a query

Posted on 2004-08-01
1
Medium Priority
?
273 Views
Last Modified: 2010-04-17
i am would like to run a query that would select  "all" outstanding  reports from various divisions where i would still have the option of selecting the reports by division below is the code
SELECT DISTINCT DailyReport.divisioin
FROM DailyReport
WHERE (((DailyReport. divisioin)=[Forms]![Search Form]![comboboxsubdivision]));
 thank you
0
Comment
Question by:wwstudioinc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
ehartfield2002 earned 250 total points
ID: 11689389
If I understand you correctly,  using one query you'd like to be able to select all reports or optionally only those reports from a selected division.  Here's the code:

SELECT DISTINCT DailyReport.divisioin
FROM DailyReport
WHERE (((DailyReport. divisioin) Like [Forms]![Search Form]![comboboxsubdivision] & *));

If comboboxsubdivision = "" then, the query selects all records.  Otherwise, it only selects one division's records.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Simple Linear Regression

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question