Solved

select "all" in a query

Posted on 2004-08-01
1
268 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 125 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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Reccomended programming language for client-server applications 12 196
maven disable workspace resolution 1 77
collection output issue 9 92
Why use this lambda? 12 95
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
In this post we will learn different types of Android Layout and some basics of an Android App.
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…

738 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