Database Novice - Date Formatting

Sep 21, 2006

I have managed ti create my first database, and i have an issue date and a renew date, at present i manually have to calculate and enter the renew date, what i am trying to achieve is that if i enter an issue date of say 01/01/06 and say the renew date is 4 years from now can this field be set so that it looks at the issue date and then say asks me a question like how long before renew , say inter 48 months it should then display a date of 01/01/10

View Replies


ADVERTISEMENT

Access Database Date Formatting

Jun 14, 2005

I hope someone can help me here because I'm pulling my hair out... Anyway... Basically I'm trying to save and retrieve a UK date (dd/mm/yyy) to an Access database using asp. The database resides on a server located in the US

Things I've tried so far:

-- Specifiying Session.LCID both in Global.asa and individual ASP pages

-- Using Custom formatting to format date before entering into database (using SPLIT function)

-- Using custom formatting to format date AFTER retreiveing from database


The problem is that the date seems to change how it's stored in the database. If I entered "16/02/1982", it would be saved in teh database as '02/16/1982".. but if I entered "03/04/2005" it would save it as this.. So fomatting after retreiveing the date from the DB just messes everything up!


Does anyone have any ideas how to solve this other than moving to a UK server?

View 2 Replies View Related

Date Stamps - I'm A Novice!

Oct 14, 2004

could anyone advise how to get a date written to a field when a check box is changed to "yes"? i'm useless at VB!

thanks.

View 2 Replies View Related

Date Formatting (General Date To Short Date)

Aug 5, 2005

I am creating an online post, similar to a guestbook. When a user submits an entry, I am storing the date and time in a column titled "Timestamp", which is formatted 8/4/2005 9:16:58 ("General Date"). I am running the table through a query which is then posted on the web.

What I would like to do is this: I would like to use Timestamp to display the date that the entry was submitted, but not the time (basically, "Short Date"). Can I exclude the time using a query without changing the actual data stored in each record of the table? I understand that the time stored is completely different than the time displayed, even in the table. How can I do this?

View 2 Replies View Related

Reports :: Report Won't Sort By Date When Query Contains Date Formatting

Jun 21, 2013

A few months ago I created a report that displays the results of a long union query comprising a dozen or so individual queries, each containing an expression that yields a date (or sometimes date and time). I set the report to group by query and then sort by the date expression. Now for some reason that I can't fathom the report has always only ever offered me the option to sort the date "A to Z", I infer it thinks the date is text, but this misunderstanding has never actually stopped it sorting by date perfectly well. It worked. No problems.

However I have recently added formatting to some of the queries so that they just display date, not date and time e.g. Format([dateandtime],"dd/mm/yyyy"), and now the sort by date in the report no longer works. None of the sorting or grouping options have changed, but it now sorts just by the "dd" component of the date - so it thinks 21st June is later than 20th July. why?

View 14 Replies View Related

Date Formatting

Jun 18, 2007

Can anyone help me please!!! I receive a csv file in which I need to import it into a table. It contains a date feild which looks like this '2007-06-15 12:17:54.953000000' and I would like it to look like this 'ddmmyyyy 00:00:00'. I have tried importing the data then changing the imported field to date and time format but it deletes it, and I have also tried to format it into a query using Format() but this is unsuccessful also. I have a work around which is to change the CSV file into excel, format it how I want it and then import, but ideally I would like it to skip that part.

Any Suggestions welcome:D

View 5 Replies View Related

Date Formatting In VBA

Sep 15, 2004

I know how to change a date format in a query. E.G., "StartDate" is entered as mm/dd/yyyy, but when I run the query, I change the format to mmmm dd, yyyy in the format line of the properties.

I am running code that includes sql for a "make-table" query. When it runs, I want the above mentioned change to the StartDate to take place. But I can't figure out how.

The purpose is to have the startdate show up as mmmmm dd, yyyy in a mail merge.

Can anyone help?

View 3 Replies View Related

Date Conditional Formatting

Oct 24, 2006

Guys,

I need some help with a conditional formatting function on my form.

I have two seperate date fields and I need to set up a conditional format on one field so that when the date on this field is greater than the date on the other field, the text turns red and bold.

Does anybody know how to do this please?

View 3 Replies View Related

Formatting Date To Have Leading Zero For DAY

Aug 20, 2014

I am using following statement current_date = Format(current_date, "m/dd/yyyy")

My goal is to format any dates like 9/1/2014 into 9/01/2014. But this is not working.

Is there a way to format date 9/1/2014 into 9/01/2014? In this case, current_date is a variable of type DATE.

View 13 Replies View Related

Time Date Formatting For Calculating

May 15, 2006

Apologies if this has been asked before but I have a problem with being able to format a field to accept an hours and minutes value where the hours is likely to be greater than 23.

I have a form that is related to the number of hours that people spend in respite care. Entry and exit dates are provided in a standard way - date and time - and I have a calculating field that calculates the number of hours and minutes that a person spends at the respite centre based on the entries made in the entry and exit fields.

Because the calculating field is based on a module and I need to have the calculated amount included in the table, I have set up a VBA code to copy the result of the calculation into a controlled field elsewhere in the form.

However, I also need the form to do a simple calculation whereby hours spent away from the centre are subtracted from the total hours calculated by the module, so I need the copied value to be in a format where the calcualtion is able to be performed.

In a nutshell I guess I am looking for a time format for the field that will allow the recipt of a value greater than 23 hours.

Of course perhaps I need a more sophisticated VBA script to perform the calculation behind the scenes but I admit to not being particularly at ease with VBA scripting. If anybody has any suggestions about either a format or a suggestion for a VBA script, I would be very appreciative.

Thanks in advance,

Chris Montgomery

View 4 Replies View Related

Urgent Help Needed In Formatting A Date??

Nov 16, 2005

I have a column called date, right now it is in m/dd/yyyy format and i want to convert this to dd-mmm-yyyy format how do i do this? thx for any help

View 1 Replies View Related

Forms :: Use Conditional Formatting With A Date?

Jul 11, 2013

Is there a way to use conditional formatting with a date? For instance, in my form I'd like the date field to turn red once a particular date has passed (to show that memberships are expired). Can this be done or am I better to just format a report of upcoming expiration dates?

View 1 Replies View Related

General :: Conditional Formatting One Date Less Than Other

Aug 10, 2015

In column D I have a date (different on each row) and in Column E I have another date (again different dates on different rows)

I need Column D conditional formatted to that

If the date in column D is less than Column E then it turns red.

I tried doing one row and it was giving erroneous formatting

Need a lot of rows done.

View 3 Replies View Related

Forms :: Date / Time Formatting

Apr 1, 2014

I have a time/date field. The format for the field is short time hh:mm I created a Private Sub for when the field is double clicked the time is populated.On Double Click:

Private Sub Time_of_Call__DblClick(Cancel As Integer)
Me.[Time of Call:] = Time()
End Sub

It works great. I double click the field and "poof" the time appears. My problem is when the time appears it is in hh:mm:ss..I need it to be in 24 hour/ military time.

View 14 Replies View Related

Date Conditional Formatting For A Report?

Sep 20, 2012

I have set a conditional format for a report...very basic, Now()+7 and set it to format to turn red, but it will not turn red unless I click on it.

View 3 Replies View Related

Conditional Formatting For A Specific Date?

Feb 12, 2015

I am making a tracker to track events and how close we are to the next time the event has to be done. Specifically the event has to be done every 6 (180 days) months. I am looking for a conditional format formula that can color code when certain days have been hit. When it is less then 30 days or less from the next event color it yellow, when 31-180 color it green and anything past due color it red.

Using todays date as an example 12-Feb-15 it would be colored green. 150-179 days from now I would need it to be colored yellow. Anything beyond 180 days from now would need to be red.

View 2 Replies View Related

Formatting A Date In A String Also Including Text

Feb 2, 2006

Hi there,

I have to format a date following dd-mmm-yy in an expression also containing text.

Expr1: "Text" & " " Date()

Although separately formatting the date is easily done. I need to keep both int he same expression.

View 3 Replies View Related

General :: Formatting Date In Email From Access

Jul 11, 2012

i have a script that creates an email for a booking when i click on the artist name which works great. i want to be able to subject the email with the week number of the month. ie in subject it would be WEEK 1 JULY WEEKEND CHECKOFF. with the date info coming from gigdate field

Code:
Private Sub artist(Cancel As Integer)
Dim msgTxt As Variant
Dim objOutlook As Outlook.Application
Dim objMailItem As Outlook.MailItem
Dim blnCreated As Boolean
Dim act As String

[Code]...

Please confirm your upcoming weekend Booking
NAME OF ACT
Friday 20 July 2012
NAME OF VENUE
ADDRESS OF VENUE
09:30 pm - 01:00 am
Act Fee: $800.00 Less Commission: $80 Net Pay: $720.00
Payment Details: Invoice venue prior - EFT
Please reply OK to confirm this booking

View 9 Replies View Related

Reports :: Formatting Date To Show Day Of The Week

Feb 10, 2015

I'm setting up a query which will eventually run as a report to show sales within a specific date period and so on.

In my table "tblJobs" I have a field named "JobInputDate" - this will act as my date source, everything else included within the query works fine, i.e. costs etc, etc.

The format of the date field is Short Date and the default value is the date the entry was made to the table, this obviously uses the =Date() expressing to generate the date.

Now, when I come to building my query I want the dates to be shown as a day of the week, so that when I eventually build my report, I can group them by day.

I've looked through the various threads on here which all point to using the Format([YourDateField],"dddd") format. However when I run the query I get the "Data mismatch" error.

View 3 Replies View Related

Formatting Date In Multi-Column Combo Box

Apr 14, 2015

I have combo boxes that contain attorney names and phone numbers. The attorney name is what is filled into the field when a selection is made from the combo box into the form. The phone number is just there for the occasions that the person managing the data in the database needs to call that attorney. Just a quicker way instead of having to go to another form to find the phone number. I created a query to combine the first and last name to one field (FullName) and this is where the combo box gets it's info.

When I run the query, the phone number is shown formatted as I want it to ((###)###-####), but in the combo box in the form, the phone number has no format to it. What I need to do to get the phone number to show up formatted in the combo box list?

View 2 Replies View Related

General :: Formatting Text To Date Not Working As Expected

Sep 17, 2014

I am trying to get a text string from a table to convert to the proper date format in access 2003.

The text string is formatted as 140930 for Sep 30th, 2014 for example.

I have tried using the formula following formula: Format([PCCSDTA_DCSDIU]![DTEAVL],"mm/dd/yyyy") but this format returns the date 11/06/2285 instead of the desired 09/30/2014.

I am still relatively new to Access.

View 9 Replies View Related

Queries :: Formatting Date On Transfer To Temp Table

May 11, 2015

I am trying to export into a temp table (all text fields because it will be going into a text export later) and I'm having difficulty adding 0:00:00 onto the value of "ApptdateLast" for the update...

INSERT INTO cbt_Export_Temp ( TransactionType, ID, ApptdateLast )
SELECT "Add" AS TransactionType, "BC" & [TransId] AS ID, dbo_Info.ApptdateLast & " 0:00:00" AS ApptdateLast
FROM dbo_examInfo

View 2 Replies View Related

Forms :: Calculated Fields - Formatting Box As Date / Time

Jan 13, 2014

In my form I have a calculated field that works out the time elapsed for a job, worked out as the QTY/RUN RATE which gives me the time in hours. However I couldn't format the box as a date/time, as it is a calculation and the times may go over 24 Hours which results in the date/time giving me something like 31/12/1899 16:00 for example.

I've got around this now and I've formatted the results as HH:NN:SS using a public function in a module, but the problem is this is now stored as a text field. I've tried setting this to a number field but the formatting doesn't carry over. I've tried setting a custom format in the table as HH:NN:SS but then all I get is just a bunch of 0's, no calculation results.

So how to format this as a number field properly?

Also for any extra information:

- I know you're not supposed to store calculated results, but this is slightly different, the calculated field is a standalone text box and the bound field is a formatted text box.
- The reason I have to store the calculated results is because my boss wants to eventually see a chart of the total hours of jobs each day, hence why I'm asking if this can be done as a number field.

View 4 Replies View Related

Queries :: Date Formatting Criteria - Query Returns No Data

May 7, 2015

I have a query in my database called "Open Date" which is a date formatted field when imported as DD/MM/YYYY. The criteria is set to:

>=#06/04/2014# And <=#05/04/2015#

The query works just fine. My customer has come back and asked for the way the date is displayed to be in the YYYY-MM-DD format (i know it's not ideal but thats what they want). When i've done that using the following

Format([Table].[Open Date],"yyyy-mm-dd")

The query then returns no data.

View 6 Replies View Related

Novice Needs Help

May 17, 2005

I have created database but I now have 3 questions. I havce changed a subform to view as a pivot chart but I am unable to split and group in a similiar waay as in excel, is this just something I have to accept because otherwise my "lets have a works database" theory is shot.

2nd I would like to create a switchboard how do I do this.

and lastly some of the data I would like to utilise for mail merge document ( name and address stuff) are these easy to set up??

thanks very much

Andy

View 1 Replies View Related

Novice Help Please!!!!

Mar 14, 2006

I am completely new to Microsoft Access but otherwise consider myself to be a Tech Geek. I have made a very simple and small database. It contains the name of my customers and the orders they have placed with my company over the past three years.

Now i want to generate report which when given the name of my customer would give me all the orders placed by that specific customer. I know how it can be done query but i want to do it through some kind of access page so that my subordinate who is very technically challenged can manage that.

Though i know it is a very basic question but i tried everything and could not do it....can somebody please please please help me.!!!!

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved