I have the function that returns a numerical value according to its corresponding weekday in one column in the design view of access and what I do not know how to do is make this be "equal to" the number in the WeekdayName(number, [abbreviate], [firstdayofweek]) function.
My current code without the WeekdayName func: - SELECT Dnt.Date
-
, WEEKDAY(Dnt.Date) AS Date_weekday
-
, Dnt.FoodDonationsID
-
, Dnr.[Donor Company]
-
, Dnt.Bakery
-
, Dnt.Dairy
-
, Dnt.Meat
-
, Dnt.Fruit
-
, Dnt.Vegetable
-
, Dnt.Prepared
-
, Dnt.Juice
-
, Dnt.[Non-Perishable]
-
, Dnt.[Non-Food]
-
, Dnt.Driver
-
, Dnt.TruckNumber
-
, Dnt.[Donor Time]
-
FROM tblFoodDonations AS Dnt
-
INNER
-
JOIN tblFoodDonor AS Dnr
-
ON Dnr.DonorID = Dnt.DonorID
-
WHERE Dnt.Date = #2008-07-01#
5 1688
Hi Cintury. Could you explain what it is you need assistance with here? I have read and re-read your post since you posted it, come back to it, read it again, and still cannot work out what you are asking. If you could clarify I am sure you will get a quick response!
Even though I'm not sure what it is you are asking, I do commend the formatting of the code you have posted - it is very clear, even if your question isn't!
-Stewart
Hi Cintury. Could you explain what it is you need assistance with here? I have read and re-read your post since you posted it, come back to it, read it again, and still cannot work out what you are asking. If you could clarify I am sure you will get a quick response!
Even though I'm not sure what it is you are asking, I do commend the formatting of the code you have posted - it is very clear, even if your question isn't!
-Stewart
Ok right now what I have is a column giving me for example "3," and instead of that column giving me that number I want it to give me the actual day for example "Tuesday." Since I already have the one column giving the appropriate numerical value for the day of the week I wanted to know if there was a way I could use that value as the input for the other function.
WeekdayName(number, [abbreviate], [firstdayofweek])
(In order for the end result to say "Tuesday" instead of "3.")
Like Stewart, I'm having trouble following your code, but where
FieldName
is the name of the field(column) holding the numerical value of the weekday
WeekDayName(FieldName)
will yield the actual name, or where
YourDateField
holds your actual date
WeekDayName(WeekDay(YourDateField))
Linq ;0)>
Thank you missinglinq this worked, but now I have a column with the appropriate day and its corresponding number showing on the query. When I uncheck the box for it not to be displayed then the other column asks for an input.
So my question is: Is there no way for the numerical representation of the day of the week to not be displayed?
Don't know what to tell you; unchecking the "Show" box in the Query Design Grid, which is what I assume you're talking about, should do nothing but keep it from displaying when you run the query. The calculation should still run, without parameter being input, as long as the field is actually in the query.
Linq ;0)>,
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: dr. zoidberg |
last post by:
Hello,
I have this:
Mon, Tue, Wed, Thu, Fri, Sat, Sun created as links. What I would like to
do is to associate days with its current week dates, for example:
Mon (05.01.2004); Tue...
|
by: Chumley the Walrus |
last post by:
I can't locate a weekday function in asp.net, whereas I just want to
grab the weekday associated with a given date. I'm using this date
format {0:MM/dd/yyyy} in references in my code, just need to...
|
by: Robert |
last post by:
A certain DAV server reports a time stamp as "Tues, 30 Aug 2005 20:48:31"
( but not "Tue, ..." as usual)
This produces the error below.
>>> time.strptime("Tue, 30 Aug 2005 20:48:31","%a, %d...
|
by: Kd |
last post by:
I am currently using a form with Weekdays
Mon
Tues
Wed
Thur
Fri
This is generated by a table that the days are being entered manually
I would like to create a form that the days updated...
|
by: david.goodyear |
last post by:
Hi,
I have a query that gives me almost the results I want, which is
SELECT ai.entry_date as CallTime,
ai.agent_login as AgentsLogin,
ai.campaign as MarketingCampaign,
ai.agent_input2 as...
| |
by: kevinjwilson |
last post by:
I am trying to get the date difference between two dates but I don't
want the function to include weekends in the calculation. Does anyone
have an idea on how to make this work?
|
by: dgmoore |
last post by:
I've hit a snag - I know this is easy, but the logic is escaping me. I
need to set criteria in a query to find dates in a date field that lie
between Tuesday of the current week and Tuesday of the...
|
by: Rudi Hausmann |
last post by:
Hi!
I have a column with a date.
In another column I want to show the weekday of this date.
I have following code:
<asp:BoundField DataField="myDate" HeaderText="WeekDay"...
|
by: Cintury |
last post by:
Using Access 2003 (Access 2000 file format) on Windows XP
I have a query that pulls from 2 tables that includes a date as well as other data. What I need is code to put in the SQL view, if this is...
|
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,...
|
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: 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...
|
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,...
|
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: 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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 ...
| |