473,386 Members | 1,674 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.

displaying deadline each 10 days

3
Hello,
I writing a code that manages the deadlines of the files until now it was pretty simple they have only asked me to display the deadline of (n_file) one time after 10 days ( adddate to (reception_date)) and if = to date() the insertion is automatic in another table that contain ( N_file, deadline).

BUT yesterday I was asked:
while the (final_date) is empty the deadline date should be displayed every 10 days, and on top of that STAYING displayed for 5 days, HOW can i manage that seriously.
Jan 29 '16 #1
6 1089
NeoPa
32,556 Expert Mod 16PB
Without knowing what you mean by a file's deadline date none of this makes any sense to me.

Perhaps you could review the question and write it in such a way as to make sense to those of us that don't already know what you want.
Jan 29 '16 #2
ana87
3
oh sorry i'm bad at explaining, so this my issue:

i have a table that i fill with : ( n_file, and reception date, detail file, and final date ),
the only date that i receive is the (date_reception) and if the (date_final) is not yet received ( because usually they send i paper with the this detail,
(file number, detail file, ..., final date).

if the final date is not received then a recall must be send mentioning (N_file) where the (final date) is messing.

that's why a query should be done to follow the whole recall process.

so the (date_final) is null until the reception of the paper,
the (n_file) should be displayed after each 10 days. to send a recall to send us the information.

i donno what to do?
how to calcul the interval??
there is no date end, because the date end is the day when the (file is received with date_final).???

hope i'm more clear?
Feb 1 '16 #3
NeoPa
32,556 Expert Mod 16PB
It's easy enough to find all records where [Date_Final] is Null and [Date_Reception] is ten or more days old :
Expand|Select|Wrap|Line Numbers
  1. SELECT *
  2. FROM   [YourTable]
  3. WHERE  ([Date_Final] Is Null)
  4.   AND  ([Date_Reception]<DateAdd('d',-10,Date()))
What makes this difficult is that you want it every ten days from [Date_Reception] until [Date_Final] is set, yet you don't have any way of holding which multiples of ten days have already been shown, so don't need to be shown again. Without that I don't see your requirement as possible.
Feb 1 '16 #4
ana87
3
thx for your reply,
the biggest issue is how can i manage to display the information for 5 days.
have no clue how to do that?
Feb 2 '16 #5
NeoPa
32,556 Expert Mod 16PB
Again, you're not explaining what you want very well. Please specify precisely what you mean when you say for five days. Five days from when?

It's going to be very difficult for you, or anyone else for that matter, to find a solution to a problem when you haven't even worked out what that problem is. Once you've determined exactly what you want then it will be much easier - not only for us but also for yourself - to think about solutions.
Feb 3 '16 #6
zmbd
5,501 Expert Mod 4TB
also, what information do you want displayed for 5 days?
Feb 6 '16 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Guido van Rossum | last post by:
This is the *last* reminder that the deadline for sending proposals for presentations at PyCon DC 2004 is January 15, 2004. That's upcoming Thursday! I'm also reminding everybody, speakers and...
0
by: Steve Holden | last post by:
Pythonistas: If you have been putting off your registration, stop putting it off! Last year the early bird deadline was extended because we were a little late getting the program together....
1
by: robinsand | last post by:
I am a new C++ programmer. I am still having trouble with certain data types and constructors, among other things. I'm not sure if I've used "std::string" properly throughout this program. I need...
0
by: mmueller | last post by:
=== Reminder=== The deadline for submitting abstracts for the the workshop on September 8 in Leipzig is July 15. It is only two days away!! If you would like to give a presentation, please...
0
by: john | last post by:
SETP-08 Draft paper submission deadline is just few days from now The 2008 International Conference on Software Engineering Theory and Practice (SETP-08) (website: www.PromoteResearch.org ) will...
0
by: john | last post by:
EISWT-08 Draft paper submission is deadline is just few days from now The 2008 International Conference on Enterprise Information Systems and Web Technologies (EISWT-08) (website:...
2
by: vspsdca | last post by:
Hi, I'm quite new to the world of VBA so any help you could extend will help me a lot with my project. I have a database of Change Requests from our users. I have two date boxes, one is Date...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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
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?
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
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
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.