473,513 Members | 2,307 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weekday result from access column

Cintury
81 New Member
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:

Expand|Select|Wrap|Line Numbers
  1. SELECT Dnt.Date
  2.      , WEEKDAY(Dnt.Date) AS Date_weekday
  3.      , Dnt.FoodDonationsID
  4.      , Dnr.[Donor Company]
  5.      , Dnt.Bakery
  6.      , Dnt.Dairy
  7.      , Dnt.Meat
  8.      , Dnt.Fruit
  9.      , Dnt.Vegetable
  10.      , Dnt.Prepared
  11.      , Dnt.Juice
  12.      , Dnt.[Non-Perishable]
  13.      , Dnt.[Non-Food]
  14.      , Dnt.Driver
  15.      , Dnt.TruckNumber
  16.      , Dnt.[Donor Time]
  17.   FROM tblFoodDonations AS Dnt   
  18. INNER 
  19.   JOIN tblFoodDonor AS Dnr
  20.     ON Dnr.DonorID = Dnt.DonorID
  21.  WHERE Dnt.Date = #2008-07-01#
Oct 17 '08 #1
5 1688
Stewart Ross
2,545 Recognized Expert Moderator Specialist
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
Oct 24 '08 #2
Cintury
81 New Member
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.")
Oct 24 '08 #3
missinglinq
3,532 Recognized Expert Specialist
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)>
Oct 24 '08 #4
Cintury
81 New Member
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?
Nov 5 '08 #5
missinglinq
3,532 Recognized Expert Specialist
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)>,
Nov 5 '08 #6

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

Similar topics

6
11234
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...
2
1533
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...
2
1800
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...
1
2013
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...
1
1717
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...
6
7636
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?
4
6689
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...
0
1616
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"...
6
2681
Cintury
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...
0
7265
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,...
0
7545
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...
1
7111
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...
0
5692
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,...
1
5095
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...
0
4751
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...
0
3240
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...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
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 ...

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.