I'm guessing this is pretty simple however not simple enough for me.
I'm developing a database to track expenses, income, banking
transactions, etc.
I have a very simple query with four fields, date, checking account
deposits, savings account deposits, savings account withdrawals. How do
I get this query to only show dates when a transaction occurred in one
of the other three fields?
Thanks,
Don.............. 3 2833
"Don Sealer" <vz******@verizon.net> wrote in message
news:LpT1f.643$AR1.105@trndny09... I'm guessing this is pretty simple however not simple enough for me. I'm developing a database to track expenses, income, banking transactions, etc. I have a very simple query with four fields, date, checking account deposits, savings account deposits, savings account withdrawals. How do I get this query to only show dates when a transaction occurred in one of the other three fields? Thanks, Don..............
"Other three fields"? You described four, but didn't identify the "one". If
I assume that one is "date", I would also assume that there would be no
record for the query to retrieve if there were no entry in any of the other
three fields, so a simply retrieval query would suffice... unless, as is
very likely, you want to retrieve only for a particular date range.
On the off-chance that you do have records for dates when there are no
transactions, and that you do not want to limit the date range, do the
following:
Add the table to the Query Builder
Drag down all fields into the grid.
Under each of the deposits or withdrawal fields, on a separate criteria line
(to indicate OR rather than the AND that is implied if criteria are listed
on the same line), enter Not Null. If you do want a paramter query for a
date range, under the date field (which should not be named "date" because
that is an Access reserved word), enter Between [Enter From Date] and [Enter
To Date].
If you want this query to be used as a record source for a form or report,
initiated from another form, it will be only slightly more complex... using
VBA code to construct the query or the criteria.
Larry Linson
Microsoft Access MVP
Larry Linson wrote: "Don Sealer" <vz******@verizon.net> wrote in message news:LpT1f.643$AR1.105@trndny09...
I'm guessing this is pretty simple however not simple enough for me. I'm developing a database to track expenses, income, banking transactions, etc. I have a very simple query with four fields, date, checking account deposits, savings account deposits, savings account withdrawals. How do I get this query to only show dates when a transaction occurred in one of the other three fields? Thanks, Don..............
"Other three fields"? You described four, but didn't identify the "one". If I assume that one is "date", I would also assume that there would be no record for the query to retrieve if there were no entry in any of the other three fields, so a simply retrieval query would suffice... unless, as is very likely, you want to retrieve only for a particular date range.
On the off-chance that you do have records for dates when there are no transactions, and that you do not want to limit the date range, do the following:
Add the table to the Query Builder
Drag down all fields into the grid.
Under each of the deposits or withdrawal fields, on a separate criteria line (to indicate OR rather than the AND that is implied if criteria are listed on the same line), enter Not Null. If you do want a paramter query for a date range, under the date field (which should not be named "date" because that is an Access reserved word), enter Between [Enter From Date] and [Enter To Date].
If you want this query to be used as a record source for a form or report, initiated from another form, it will be only slightly more complex... using VBA code to construct the query or the criteria.
Larry Linson Microsoft Access MVP
Thank you Larr,
I wonder how long it will take for me to figure out things like this
(just the simple things).
Thanks again,
Don............
Just testing to see if I can send to the newsgroup.
Don Sealer wrote: Larry Linson wrote:
"Don Sealer" <vz******@verizon.net> wrote in message news:LpT1f.643$AR1.105@trndny09...
I'm guessing this is pretty simple however not simple enough for me. I'm developing a database to track expenses, income, banking transactions, etc. I have a very simple query with four fields, date, checking account deposits, savings account deposits, savings account withdrawals. How do I get this query to only show dates when a transaction occurred in one of the other three fields? Thanks, Don.............. "Other three fields"? You described four, but didn't identify the "one". If I assume that one is "date", I would also assume that there would be no record for the query to retrieve if there were no entry in any of the other three fields, so a simply retrieval query would suffice... unless, as is very likely, you want to retrieve only for a particular date range.
On the off-chance that you do have records for dates when there are no transactions, and that you do not want to limit the date range, do the following:
Add the table to the Query Builder
Drag down all fields into the grid.
Under each of the deposits or withdrawal fields, on a separate criteria line (to indicate OR rather than the AND that is implied if criteria are listed on the same line), enter Not Null. If you do want a paramter query for a date range, under the date field (which should not be named "date" because that is an Access reserved word), enter Between [Enter From Date] and [Enter To Date].
If you want this query to be used as a record source for a form or report, initiated from another form, it will be only slightly more complex... using VBA code to construct the query or the criteria.
Larry Linson Microsoft Access MVP Thank you Larr, I wonder how long it will take for me to figure out things like this (just the simple things). Thanks again, Don............ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: unixman |
last post by:
As usual, it is 2:00am, and I'm pulling my hair out, finally resorting to
posting in the newsgroups for help. :)
Simple problem, in theory.
Given table "map":
CREATE TABLE map (
entry_id...
|
by: Eddie Smit |
last post by:
field- field-
surname town
---- ----
john NY
john Vegas
john Boston
eddie Boston
eddie New Orleans
eddie NY
|
by: Mrs Howl |
last post by:
I have a query that just reads one table and appends to an output
table, one-for-one. No criteria. It's not a Total query (i.e. no
group by). It normally run run in minutes, but gets horribly...
|
by: j.mandala |
last post by:
I created a simple link between two tables in a query. TableA has
Social Security numbers stored as Long Integer Data. (I imported this
table).
The Join is between these two fields
Table ...
|
by: Don Wash |
last post by:
Hi All!
I've been searching everywhere for a simple sample of producing a bar graph
using CrystalReport by specifying SQL Query, and I've found none of it! I
find so many complex samples with so...
| |
by: John Baker |
last post by:
Hi:7
Newby here to ASP, and using the ASP.NET Web Matrix development tool. While that tool
looks great for a Newby, I have run into a snag. I have an HTML Text Box which I have
named HireInput,...
|
by: one man army |
last post by:
Hi All-
I am new to PHP. I found FAQTS and the php manual. I am trying this
sequence, but getting 'no zip string found:'... PHP Version 4.4.0
$doc = new DomDocument;
$res =...
|
by: Fendi Baba |
last post by:
I created a person table with various fields such as Suffix,
Salutation, etc, Some of these fields may not be mandatory for example
suffix. In the actual table itself, I only have a field for...
|
by: Emin |
last post by:
Dear Experts,
I have a fairly simple query in which adding a where clause slows
things down by at least a factor of 100. The following is the slow
version of the query
...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |