473,811 Members | 2,714 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Entering dates as dates-not text

2 New Member
Hello,
I am a student who has developed at database for the Pioneer Cemetery that adjoins our school. I am very inexperienced with Access. I use an input mask to add burial dates mm/dd/yyyy. The information is sometimes incomplete; we may have just a year or month. I can't seem to make the entries dates instead of just text. I would like to be able to make queries that would generate reports such as all those who died during the influenza or TB outbreak or in chronological order. I only know how to write the most basic queries.

Any assistance would be greatly appreciated.

CB Cemetery
Mar 9 '07 #1
3 1504
Rabbit
12,516 Recognized Expert Moderator MVP
An input mask doesn't change the data type, you'll have to change the data type of the field itself to Date/Time
Mar 9 '07 #2
CB Cemetery
2 New Member
An input mask doesn't change the data type, you'll have to change the data type of the field itself to Date/Time
I should have mentioned that I do t set the format property to short date. The problem is that if I save the changes, any dates that are not complete (only a year or month and year only) are deleted for the save to take place.

Could I set Format property up differtly?

Thanks
Mar 9 '07 #3
NeoPa
32,579 Recognized Expert Moderator MVP
I should have mentioned that I do t set the format property to short date. The problem is that if I save the changes, any dates that are not complete (only a year or month and year only) are deleted for the save to take place.
That would certainly come under the heading Relevant Info :D
This is a little complicated as a month is not a Date per se. If you can live with the first day of a month representing a month and 1 Jan representing a year with no date specified, then just convert any entered date to a valid date that way.
Otherwise, not too surprisingly, if you don't have a date - you can't store it as a date.
If you can't use dates then you may want to consider storing the data in three separate fields (Day; Month; Year). This will make searching and grouping a little more involved. At the end of the day you can't ask Access to guess what you want in your searches. If you can't supply it the information you want, then it can't provide the answer.
Mar 10 '07 #4

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

Similar topics

4
5395
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 calculate days, months, and years. This is not for a college course. It's for my own personal genealogy website. I'm stumped about the code. I'm working on it but not making much progress. Is there any free code available anywhere? I know it...
1
2148
by: Alicia | last post by:
I basically wanted something that would do a count of the dates, then group them by their week name.. BEFORE: Resource Date Total number of times that date Appeared (Count) 4/3/03 4 4/4/03 2 (note 4/4/03 showed up twice) 4/9/03 1
3
1215
by: Beacher | last post by:
Please, any help is GREATLY appreciated. I need to have SQL Server 2000 Check a field (EffectiveDate) to make sure the date is any date in the future past today. I've gotten as far as the 'Manage Constraints' Part in SQL Server 2000 and entered in ( <= getdate()) But I really don't know what the syntax is or what you have to do to get this going.. I can't find anything on the web about it either :\
8
14981
by: Notgiven | last post by:
Say you have two dates, 2005-01-01 and 2005-01-24. I want to get a list or array or all the date between and including those two dates. I want to include this list in a query so I need it in a format like: '2005-01-01', '2005-01-02',... Any ideas? thanks
5
1975
by: Henry | last post by:
Dear all, Is there any DB2 SQL statement that could generate rows of intermediate dates by providing the start and end dates?? If 2006-1-1 and 2006-1-31 are provided to the SQL, the output will look like : 2006-1-1 2006-1-2
12
2450
by: Dixie | last post by:
I am trying to calculate the number of workdays between two dates with regards to holidays as well. I have used Arvin Meyer's code on the Access Web, but as I am in Australia and my date format is dd/mm/yyyy, I have found that the dates I put in my holidays table are reversed into American dates. So, the wrong holiday dates are subtracted from the total workdays between the start and end dates. Is there an easy fix for this? ******Code...
1
15806
by: pitfour.ferguson | last post by:
My dbase has the start date and end date of each visit. How can I ask Access to list the day of the week of the start (easy), end (easy) and, more importantly, the dates of the visit itself - ie list the dates between the start and end date. Basically I am doing a day of the week analysis and need to know which day of the week is busiest.
1
2246
by: josecruz | last post by:
I have to create a summary report that will provide counts and # average of days for multiple "Status" by entering different dates for every criteria. I have created several queries that calculates the number of days and the counts. I have created the corresponding report to show the sum and verages. But I don't know how to make them print on a main report that will display the information of multiple status since I have to enter multiple...
2
1700
by: robertns5411 | last post by:
I have two questions: 1) Say I have a form bound to a table. Assume the user is entering data into a new record at the bottom of the form. Now, suppose the user clicks a button on the form while he's still entering data and hasn't yet saved the record that he is modifying. How can the button's click event procedure test to know that the user is in the middle of entering new data? I've tried testing against the form's recordset's...
4
1683
by: Neil | last post by:
Having trouble with inserting a record into a table. It's a list of names. But, for some reason, it won't take a particular name. When a user tries to enter a name into the table, the system hangs (users are using Access 2000 via ODBC linked table). I went into QA (SQL 7) and tried an Insert Into statement, but I got the same result from QA: the system just hung. No error message. After 5 minutes, the query was still trying to execute. ...
0
9727
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10386
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10398
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7669
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
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 we have to send another system
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.