473,406 Members | 2,705 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,406 software developers and data experts.

Adding a column in report

Hi,

Need help on this report

My report displays as follows

Receipt Number Checkout Date Payment Date
13580 30-06-2005 02-07-2005
13581 01-07-2005 02-07-2005

I want my report to show as follows

Receipt Number Checkout Date Payment Date Status
13580 30-06-2005 02-07-2005 Debit
13581 01-07-2005 02-07-2005 Cash

Note: An additional column has been added to indicate the status, also
note that I am using a british date.

If the month of payment date is greater than the month of check out
date than status field should show Debit and if the month of payment
date is the same as checkout date than the status field should show
cash.

I don't know if this is done in report using VBA or underlying query.
I will use the status field to group my results, grouping debit
separately and cash separetly.

All the help is highly appreciated and thanking you all in advance.

Nov 13 '05 #1
5 1730

<ha*******@yahoo.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi,

Need help on this report

My report displays as follows

Receipt Number Checkout Date Payment Date
13580 30-06-2005 02-07-2005
13581 01-07-2005 02-07-2005

I want my report to show as follows

Receipt Number Checkout Date Payment Date Status
13580 30-06-2005 02-07-2005 Debit
13581 01-07-2005 02-07-2005 Cash

Note: An additional column has been added to indicate the status, also
note that I am using a british date.

If the month of payment date is greater than the month of check out
date than status field should show Debit and if the month of payment
date is the same as checkout date than the status field should show
cash.

I don't know if this is done in report using VBA or underlying query.
I will use the status field to group my results, grouping debit
separately and cash separetly.

All the help is highly appreciated and thanking you all in advance.


Are CheckoutDate and PaymentDate stored as dates?
Nov 13 '05 #2
Status:
=IIF(Month([Payment Date])>Month([Checkout Date]), "Debit","Cash")

You could just create an unbound calculated control and put the formula
in the rowsource...

Nov 13 '05 #3
This might need some modification do deal with year end...

<pi********@hotmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
Status:
=IIF(Month([Payment Date])>Month([Checkout Date]), "Debit","Cash")

You could just create an unbound calculated control and put the formula
in the rowsource...

Nov 13 '05 #4
Yes, CheckoutDate and PaymentDate are stored as dates

Nov 13 '05 #5
Thanks pietlin, that worked fine

Nov 13 '05 #6

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

Similar topics

1
by: Scott | last post by:
Hello: I have a stored procedure for generating our invoices in Crystal Reports. I have added a new field to the SP, but when I try to add the field to my Crystal Report invoice, the field isn't...
13
by: Bruno Panetta | last post by:
Suppose I have a table with the following columns: Year, SalesInEurope, SalesInAmerica, TotalSales. I want to add a new column called SalesInAsia, say, but I want it to appear before TotalSales....
11
by: Bobbak | last post by:
Hello All, I have these tables (lets call it ‘EmpCalls', ‘EmpOrders', and ‘Stats') that each contain the list of EmployeeIDs, I want to be able to create a Module in which I could call in my VB...
3
by: grlgeek | last post by:
I have a report for creating the switchboard labels for our phone system receptionist switchboard. The template has 12 records per column. I setup a report that will create the labels and put a...
4
by: MLH | last post by:
I have a report and on it, a subreport control Main Report Name: rptInvoiceMain Sub Report Name: rptInvoiceSubReport SubReport Control Name: rptInvoiceSubReportCtl The...
5
by: ljungers | last post by:
Hi to all. I hope someone can provide me with a solution to my problem. I have a Inventory master table that is used to produce a report. Currently a form is used so that either part of the item...
69
by: kabradley | last post by:
Alrighty Guys and Gals, I have another question that I hope you all can help me with. I have a report that uses a cross-tab query as its record source. This cross-tab query is getting all of its...
2
by: dhutton | last post by:
Hello everyone, My query below works fine - but I'm having problems with identifying each of the 4 reports that are run in here. I need to have a column that has the name of the report run which...
1
by: lornab | last post by:
Good Afternoon I need a column to show in a report as 10 digits long by adding zero's to the left of the result. My select statement is like this: SELECT a.client, a.apar_id FROM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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
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...

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.