473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

HELP: Reports: changing values of YES/NO fields

I've built a CROSSTAB query that will list attendance for classes.
Since the ATTENDANCE table tracks if someone was ABSENT with a yes/no
field, the results of the crosstab show "-1" if checked.

I create a report by building the labels and set the control source of
each textbox. It's working well and the correct data is showing, but
here's the prob:

1. If someone was absent (ATTENDANCE.ABSENT = "NO" [field type:
yes/no]) then the value in the box is -1

2. There is a total of all values, so I can keep track of how many
absences there are for a particular student. While it sums it right,
it's totaling negative values.

What I'd like to do is either replace a -1 with a checkbox who's value
is checked, as well as, really, multiply the value of the total by -1
to get a positive value. However, when I'm coding in VB, the auto
dropdown box shows no options for values of textboxes or checkboxes.

Any thoughts?

Thanks!

Aug 3 '06 #1
2 2145
UPDATE:

Ok... Part 2 is done... I used the ABS() function in the crosstab to
make the negative sums positive.

Now, all I need to do if figure out the checkbox so the report isn't
filled with a bunch of 0's and -1's.

Thanks.
mm*************@gmail.com wrote:
I've built a CROSSTAB query that will list attendance for classes.
Since the ATTENDANCE table tracks if someone was ABSENT with a yes/no
field, the results of the crosstab show "-1" if checked.

I create a report by building the labels and set the control source of
each textbox. It's working well and the correct data is showing, but
here's the prob:

1. If someone was absent (ATTENDANCE.ABSENT = "NO" [field type:
yes/no]) then the value in the box is -1

2. There is a total of all values, so I can keep track of how many
absences there are for a particular student. While it sums it right,
it's totaling negative values.

What I'd like to do is either replace a -1 with a checkbox who's value
is checked, as well as, really, multiply the value of the total by -1
to get a positive value. However, when I'm coding in VB, the auto
dropdown box shows no options for values of textboxes or checkboxes.

Any thoughts?

Thanks!
Aug 3 '06 #2
Aaaaannnd done!

Both problems solved.
mm*************@gmail.com wrote:
UPDATE:

Ok... Part 2 is done... I used the ABS() function in the crosstab to
make the negative sums positive.

Now, all I need to do if figure out the checkbox so the report isn't
filled with a bunch of 0's and -1's.

Thanks.
mm*************@gmail.com wrote:
I've built a CROSSTAB query that will list attendance for classes.
Since the ATTENDANCE table tracks if someone was ABSENT with a yes/no
field, the results of the crosstab show "-1" if checked.

I create a report by building the labels and set the control source of
each textbox. It's working well and the correct data is showing, but
here's the prob:

1. If someone was absent (ATTENDANCE.ABSENT = "NO" [field type:
yes/no]) then the value in the box is -1

2. There is a total of all values, so I can keep track of how many
absences there are for a particular student. While it sums it right,
it's totaling negative values.

What I'd like to do is either replace a -1 with a checkbox who's value
is checked, as well as, really, multiply the value of the total by -1
to get a positive value. However, when I'm coding in VB, the auto
dropdown box shows no options for values of textboxes or checkboxes.

Any thoughts?

Thanks!
Aug 4 '06 #3

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

Similar topics

9
by: Edward S | last post by:
I budget for a Project in an Excel sheet as illustrated below. The months below are usually a 2 year period i.e. 24 months, though it could be over 24 months depending upon a Project. I then...
1
by: James Fortune | last post by:
Flexible Reports I only did this because a client required this functionality. No guarantees or rights are implied by the code shown here. It is provided mostly for those with extra time on...
9
by: Tony Williams | last post by:
I have two tables 1.tblmonth which holds two fields txtmonth and txtqtrlabel and 2. tblmain which holds a number of fields but in particular a field called txtqtrlabel2. The two tables are linked...
28
by: Siv | last post by:
Hi, If I run the following: strSQL = "Select * FROM Clients;" da = New OleDb.OleDbDataAdapter(strSQL, Conn) 'Create data adapter cb = New OleDb.OleDbCommandBuilder(da) ...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
8
by: Swans, What Swans? | last post by:
In one of my tables, in addition to a text field that is a Description field, there are two fields for color formatting the data in reports. They are Longs and hold the foreground and background...
5
by: Aswanth | last post by:
I'm Using Asp.Net with C# & Working with SSRS 2005 for Generating Reports.. The Following Expression I'm using in Reports to Show the Percentage of Particular Items in REPORT.. ...
7
by: google | last post by:
I am trying to automate the way reports are printed in an Access 2003 database - I have ~200 records (people) who require between 5 and 10 customized reports (depending on values within certain...
1
by: annemariearmour | last post by:
I am using Crystal reports version 11.2 to create reports. The data source is SQL Server, and I am using views rather than reporting directly from tables. I apply selection criteria to the incoming...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.