473,796 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Date displaying

I've got a report that puts dates at the top of columns and the user
is prompted to enter a beginning date when the report is opened. That
date is put in a textbox in the first column like this:

=DateValue([Enter 1st date to display - Ex: 1/5/03])

Then the next columns are textboxes that add 7 to the previous column
for the date display of the next week like this:

=[Text12]+7

This goes for a six month period.

The problem is sometimes the report will not display the first half of
the 6 months, and I have to fix it by cutting the columns that are not
displaying and pasting them back into the report. Is there another
way I can display these dates to *possibly* avoid this problem?

Russ
Nov 12 '05 #1
2 2361
Russ, the crucial thing is to ensure Access understands the data type.

Base the report on a query, and declare the parameter in the query
(Parameters on Query menu in query design). This way you can specify that it
is a Date/Time type.

In the report, set the Format property of the text boxes to:
Short Date
or similar. This way, Access knows the intended data type.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html

"Russ" <Ru***@notathom e.com> wrote in message
news:4c******** *************** *********@4ax.c om...
I've got a report that puts dates at the top of columns and the user
is prompted to enter a beginning date when the report is opened. That
date is put in a textbox in the first column like this:

=DateValue([Enter 1st date to display - Ex: 1/5/03])

Then the next columns are textboxes that add 7 to the previous column
for the date display of the next week like this:

=[Text12]+7

This goes for a six month period.

The problem is sometimes the report will not display the first half of
the 6 months, and I have to fix it by cutting the columns that are not
displaying and pasting them back into the report. Is there another
way I can display these dates to *possibly* avoid this problem?

Russ

Nov 12 '05 #2
Allen,

I've set the format of the text boxes to date as you suggested, but
for now I am going to get the input when the report runs, not when the
query runs. If it happens again, I'll work on the query. This
approach doesn't seem to be headed in the right direction however,
because the last 6 months of dates always works just fine.

Russ

On Sun, 14 Sep 2003 15:49:08 GMT, "Allen Browne"
<ab************ ***@bigpond.net .au> wrote:
Russ, the crucial thing is to ensure Access understands the data type.

Base the report on a query, and declare the parameter in the query
(Parameters on Query menu in query design). This way you can specify that it
is a Date/Time type.

In the report, set the Format property of the text boxes to:
Short Date
or similar. This way, Access knows the intended data type.


Nov 12 '05 #3

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

Similar topics

1
1820
by: paul | last post by:
Hi everyone, I'm having problems displaying a date in the correct format and I was wondering if anyone knew how to help. I'm using pear to extract a date from our back end database (the date is in DATE_FORMAT_ISO_EXTENDED), and I was to display the date in "Wednesday, February 23rd 2005, 11:04" format. I'm using something like:
1
508
by: Dave Posh | last post by:
I seem to be having a problem displaying time stored in mysql. The format stored in the database is 13:15:05. The database data type is time. I'm using asp vbscript and sql to retrieve the time store in the database. However asp recognizes the data type as date and displays the date instead of the time. If I change the data type in mysql to varchar then asp will display the time correctly, but I cannot do it this way. I want to be able...
2
4192
by: Tjerk | last post by:
Hello all, I have the script below to change an image depending on the date upto january it worked fine but then it just stopped working does anybody have an idea how I can make it work again or why it doesn't work? Thanks in advance Tjerk
1
1625
by: Miguel Dias Moura | last post by:
Hello, when i preview an ASP.net web site i am creating to a client Date and Time show as follow: Date: dd-mm-yyyy Time: hh-mm (24 hour clock. Ex: 21:45) Both Date and Time use 2 digits format. Ex: 02-02-2004 and 02:05
6
4441
by: yoshitha | last post by:
hi db : sql server 2000 lan : C#.net(ASp.Net) in my database table there are 2 fileds of data type datatime. in field 1 i'm storing date in field 2 i'm storing time.
1
4589
by: viswanadhds | last post by:
Hi all, I was trying to compare a date with todays date like this var date1 = getDateObject(document.groupForm.endDate.value); var today = new Date(); today.setHours(0,0,0); if(date1 < today) alert("date1 is less than today);
2
1850
by: siva33 | last post by:
i am getting problem with the date. i will explain my problem detailed. plz solve for me, plzzz send me the code if possible aspx file and aspx.vb file i have taken a text box to enter the date by the user and after entering the date in the textbox (7/5/2007). i want to convert every date into (MM/DD/YYYY) i:e (5/7/2007) and insert it into ms access. after that while getting back the date to the aspx page for viewing i want to convert...
2
2091
by: Colleen Robledo, MLIS | last post by:
Hello, I'm still pretty new to PHP and MySQL, and have a PHP scripting question. If I'm querying DATE info from a MySQL database, and displaying it with PHP echo statements... is there a PHP script I can use to convert the DATE data to standard calendar format? Example:
1
1964
by: suresh_nsnguys | last post by:
Hi, I am new to this Web dowmain.I am little bit confused with this functionality.I am looking forward some sugggesstion from you. Issue: Users allowed to create Ads in my application for displaying in Digital Signage Screen by Settting Start Date/Start Time and End Date/End Time. Based on Start/End date and time ,the particular Ad will get Display in Digital Signage Screen from client machine. While Displaying ads in...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10237
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10187
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9055
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7553
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4120
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 we have to send another system
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.