473,378 Members | 1,617 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,378 software developers and data experts.

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 2337
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***@notathome.com> wrote in message
news:4c********************************@4ax.com...
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
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...
1
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...
2
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...
1
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...
6
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
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 <...
2
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...
2
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...
1
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
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...

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.