In our production line we have targets for our machines, which changes
monthly.
In a table I have 3 coloumns: Machine, date, target.
this has a relationship with a query that runs a report daily. In the report
/ query, the date changes constantly as days go on, eg: 01/05/2004,
02/05/2004, for each day's report, but now the targets has to included in
this report everyday and has to show the monthly targets.
When I capture the monthly target as follows:
8066301 : April 2004 : 60
Then access will autoconvert the date to 01/05/2004 or 01 April 2004
whichever format is used, leading to the targets being read into the report
only on the 1st of april 2004, and not the rest of the month.
What do I do so that my targets gets read the whole month until the next
targets are set?
Thanks in advance 2 961
Hi all again...
I have tried to insert the following in the daily report query:
format(dbo.dc_machinehours_MAIN.Date_Stamp, [#01#/mm/yyyy])
Meaning, it should take that date and just give the first day of that month,
then I can link my table to that field, but for some reason it gives me that
format is not a recognised function name
Please help, thanks a lot again in advance
"Rudi Groenewald" <tj**@tjoppie.co.za> wrote in message
news:c7**********@ctb-nnrp2.saix.net... In our production line we have targets for our machines, which changes monthly.
In a table I have 3 coloumns: Machine, date, target.
this has a relationship with a query that runs a report daily. In the
report / query, the date changes constantly as days go on, eg: 01/05/2004, 02/05/2004, for each day's report, but now the targets has to included in this report everyday and has to show the monthly targets.
When I capture the monthly target as follows: 8066301 : April 2004 : 60 Then access will autoconvert the date to 01/05/2004 or 01 April 2004 whichever format is used, leading to the targets being read into the
report only on the 1st of april 2004, and not the rest of the month.
What do I do so that my targets gets read the whole month until the next targets are set?
Thanks in advance
"Rudi Groenewald" <tj**@tjoppie.co.za> wrote in
news:c7**********@ctb-nnrp2.saix.net: Hi all again...
I have tried to insert the following in the daily report query:
format(dbo.dc_machinehours_MAIN.Date_Stamp, [#01#/mm/yyyy])
Meaning, it should take that date and just give the first day of that month, then I can link my table to that field, but for some reason it gives me that format is not a recognised function name
Please help, thanks a lot again in advance "Rudi Groenewald" <tj**@tjoppie.co.za> wrote in message news:c7**********@ctb-nnrp2.saix.net... In our production line we have targets for our machines, which changes monthly.
In a table I have 3 coloumns: Machine, date, target.
this has a relationship with a query that runs a report daily. In the report / query, the date changes constantly as days go on, eg: 01/05/2004, 02/05/2004, for each day's report, but now the targets has to included in this report everyday and has to show the monthly targets.
When I capture the monthly target as follows: 8066301 : April 2004 : 60 Then access will autoconvert the date to 01/05/2004 or 01 April 2004 whichever format is used, leading to the targets being read into the report only on the 1st of april 2004, and not the rest of the month.
What do I do so that my targets gets read the whole month until the next targets are set?
Thanks in advance
Hi, to answer the second question first,
[#01#/mm/yyyy] should be "#01#/mm/yyyy".
(wrong delimiters)
As to your first question,
I much prefer the expression
period: year([mydatefield])*100+month([mydatefield]) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Lauren Quantrell |
last post by:
I have a stored procedure using Convert where the exact same Convert
string works in the SELECT portion of the procedure but fails in the
WHERE portion.
The entire SP is listed below....
|
by: Richard Hollenbeck |
last post by:
I'm trying to write some code that will convert any of the most popular
standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan
1908) and compare the first with the second and...
|
by: Frank |
last post by:
For my website i would like to display the age of my son in years,
months, days and hours.
For now i manage to get a result for totals. Like the total number of
days.
This is the beginning:
...
|
by: Bambero |
last post by:
Hello all
Problem like in subject. There is no problem when I want to count days
between two dates. Problem is when I want to count years becouse of
leap years.
For ex.
between
2002-11-19...
|
by: netsurfer |
last post by:
Hi:
Have a question on making the date automatically filled in by what the
user enters in by the date at the top.
The date entered at the top would most likely be on a Wednesday then I
need...
|
by: carl.barrett |
last post by:
Hi,
I have a continuous form based on a query ( I will also be creating a
report based on the same query).
There are 2 fields:
Date Obtained and Date Of Expiry
I want a further 3 columns...
|
by: charliewest |
last post by:
Can someone pls point me to or recommend the easiest way to calculate
someone´s age using the TimeSpan object, in .NET CF?
Isn´t there a simple way to use the TimeSpan object to calculate the...
|
by: Ashish Sheth |
last post by:
Hi All,
In C#, How can I get the difference between two dates in number of months?
I tried to use the Substract method of the DateTime class and it is
giving me the difference in TimeSpan,From...
|
by: gorio |
last post by:
I have a MySQL/PHP based page with a number of date fields that I would
like the user to be able to run a script on to update the fields and
then submit them for server processing.
All my...
|
by: wespw1 |
last post by:
I have a form where I have 2 dates:
06/27/2007
01/28/1996
What I need to get is the difference between the 2 dates in months.
Or in otherwords I am trying to get the age of the 2 dates in...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |