473,503 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simple Query

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..............
Nov 13 '05 #1
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
Nov 13 '05 #2
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............
Nov 13 '05 #3


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............

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1989
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...
6
3990
by: Eddie Smit | last post by:
field- field- surname town ---- ---- john NY john Vegas john Boston eddie Boston eddie New Orleans eddie NY
2
8197
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...
1
3632
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 ...
2
8464
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...
3
1746
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,...
27
4583
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 =...
2
2378
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...
9
19117
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 ...
1
6979
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...
0
7449
tracyyun
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...
0
5570
agi2029
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,...
1
4998
isladogs
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...
0
3160
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...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
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 ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.