hi,
how can i set the dates in a fieldn in my tables in ms access to
handle only dates and no time? in creating my table, i set its type
to 'date/time' with 'short date' format. but when i entered values in
it, the data i get was '4/1/2004 4:28:12 PM'. i only want this field
to hold date and no time. can somebody tell me how to get rid of the
time?
thanks!
nick_faye 5 1801
On your data entry form, you are using Now() to enter the date. Now() also
includes the time. Change Now() to Date().
Make a copy of your table and try this to change your existing data to date
only. Change the data type of the field to Integer. This should drop the decimal
portion of the data values which is the time. Then change the data type back to
date/time.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdata sheet.com www.pcdatasheet.com
"nick_faye" <iv******@yahoo .com> wrote in message
news:8a******** *************** ***@posting.goo gle.com... hi, how can i set the dates in a fieldn in my tables in ms access to handle only dates and no time? in creating my table, i set its type to 'date/time' with 'short date' format. but when i entered values in it, the data i get was '4/1/2004 4:28:12 PM'. i only want this field to hold date and no time. can somebody tell me how to get rid of the time? thanks! nick_faye
nick_faye wrote: hi, how can i set the dates in a fieldn in my tables in ms access to handle only dates and no time? in creating my table, i set its type to 'date/time' with 'short date' format. but when i entered values in it, the data i get was '4/1/2004 4:28:12 PM'. i only want this field to hold date and no time. can somebody tell me how to get rid of the time? thanks! nick_faye
Format your output on your report as a date only :)
--
regards,
Bradley
thanks for the inputs...
actually, i just found out that my real problem is in my query because
when i want to group my entries according to dates, my query cannot
group them because it seems that it is also evaluating the time... so
if i have entries with '4/1/2004 4:28:12 PM' and '4/1/2004 4:30:12
PM', my query treat them as two separate dates because they have
different time... any ideas how to eliminate my problem? please
help...
"Bradley" <br*****@REMOVE THIScomcen.com. au> wrote in message news:<Vz******* *********@news-server.bigpond. net.au>... nick_faye wrote: hi, how can i set the dates in a fieldn in my tables in ms access to handle only dates and no time? in creating my table, i set its type to 'date/time' with 'short date' format. but when i entered values in it, the data i get was '4/1/2004 4:28:12 PM'. i only want this field to hold date and no time. can somebody tell me how to get rid of the time? thanks! nick_faye
Format your output on your report as a date only :) iv******@yahoo. com (nick_faye) wrote in
news:8a******** *************** ***@posting.goo gle.com: thanks for the inputs...
actually, i just found out that my real problem is in my query because when i want to group my entries according to dates, my query cannot group them because it seems that it is also evaluating the time... so if i have entries with '4/1/2004 4:28:12 PM' and '4/1/2004 4:30:12 PM', my query treat them as two separate dates because they have different time... any ideas how to eliminate my problem? please help...
I assume this is in a totals query.
Put the date in the query a second time.as an expression
expr1: format(mydate, "yyyymmdd") group on it, but make it
invisible. change the group By for the other date as First of,
and it should give the result you want.
Bob Quintal
"Bradley" <br*****@REMOVE THIScomcen.com. au> wrote in message news:<Vz******* *********@news-server.bigpond. net.au>... nick_faye wrote: > hi, > how can i set the dates in a fieldn in my tables in ms > access to > handle only dates and no time? in creating my table, i set > its type to 'date/time' with 'short date' format. but when > i entered values in it, the data i get was '4/1/2004 > 4:28:12 PM'. i only want this field to hold date and no > time. can somebody tell me how to get rid of the time? > thanks! > nick_faye
Format your output on your report as a date only :)
nick_faye wrote: thanks for the inputs...
actually, i just found out that my real problem is in my query because when i want to group my entries according to dates, my query cannot group them because it seems that it is also evaluating the time... so if i have entries with '4/1/2004 4:28:12 PM' and '4/1/2004 4:30:12 PM', my query treat them as two separate dates because they have different time... any ideas how to eliminate my problem? please help...
Easy, sort on a formatted date in your query.
"Bradley" <br*****@REMOVE THIScomcen.com. au> wrote in message news:<Vz******* *********@news-server.bigpond. net.au>... nick_faye wrote: hi, how can i set the dates in a fieldn in my tables in ms access to handle only dates and no time? in creating my table, i set its type to 'date/time' with 'short date' format. but when i entered values in it, the data i get was '4/1/2004 4:28:12 PM'. i only want this field to hold date and no time. can somebody tell me how to get rid of the time? thanks! nick_faye
Format your output on your report as a date only :)
--
regards,
Bradley This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rene |
last post by:
I have a master "attendance" report that also has two "attendance"
sub-reports...each collecting data from a different group...and
totaling
those present at the end. I chose sub-reports because of the way they
needed the data displayed. When printing this report, they wanted an
option
to select by date. The sub-reports are linked to the master by this
"date"
field.
|
by: Sara |
last post by:
I have followed instructions on the http://allenbrowne.com/tips.html
for limiting a report to a date range. At the bottom there is a note
that says
You will end up using this form for all sorts of reports. You may add
an option group or list box that selects which report you want printed,
and a check box that determines whether the report should be opened in
preview mode.
I have tried several times to do this but can't figure it out....
|
by: |
last post by:
Source Error:
Line 173: sData(rownumber - 1, lcnt) = WhatCol.Value
Line 174: End IF
Line 175: If (sData(rownumber, lcnt) = sData(rownumber - 1,
lcnt)) AND (WhatCol.Type <> 5 AND WhatCol.Type <> 6) Then
Line 176: If rownumber = 3 Then
Line 177: thisfield = WhatCol.Value
|
by: tony |
last post by:
Is there a way to change the "print date" field in vb/vb.net code? I have a
report that uses keywords like "MonthToDate" and "YearToDate" to genereate
the report, I want to be able to change the relative date to those fields.
Basically exactly like the "set print date and time" dialog box under the
reports menu in crystal reports designer.
So far I have:
Dim cr As New ReportDocument
cr.Load("report.rpt")
|
by: grumpyone |
last post by:
I'm looking for a method to enter and retain a start date and end date for use with a macro that runs 11 month-end reports that each require the same start date and end date.
FYI- currently, the macro runs and requires entry for start and end dates for each report as it opens. Where no data is available, the macro informs of no data, requires acknowledgement, then proceeds to the next report.
| |
by: Ryan |
last post by:
Hello,
I'm new to Access and DB's in general. I've taken over some light
duty support for a lab information system we use in house. Most of our
dates are reported as "10/31/2006 12:30:00 PM" (With seconds listed in
the report field).
However, nobody wants to see the seconds. So I tried to format it
=Format(DateCollected, "mm/dd/yy hh:nn AM/PM").
Works great, right? Well.. yeah for the most part. However if we
|
by: Mik |
last post by:
I apologise if this post seems a little basic, but I am a newbie and
have NO access knowledge.
I have downloaded the Accounts Ledger from the Microsoft Website.
It allows the user to review a report of transactions between a Start &
End date.
The Tables and forms i believe are UK format "dd/mm/yyyy",
However, when I click on "Review Reports" and enter the date as UK
"dd/mm/yyyy", it returns nothing.
|
by: stpark22 |
last post by:
Hello,
I'm building a tracking tool using Access 2003, where my users will be entering orders that includes quantity of products sold, and cost per unit.
I'm in the process of building several instant reports where they can click on a control without having to specific any criterias such as data ranges and pull up an instant report
What I'm having trouble with is building reports that will compute totals by certain dates (Totals For...
|
by: smithj14 |
last post by:
I have a form that has an option group (fraReports) which holds a list of reports to print. This part works fine. I select a report name and click print and that report opens.
Now I want to add a text box to enter a service date that will open the selected report using the text box value (service date) to filter the report to only those dates. I have the field using the format "mmmm-yyyy" on all my forms and reports so it will show May-2009....
|
by: harshakusam |
last post by:
Hi All,
Could someone pls let me know how to get preiousday for the current date.
Y i require this because i my script runs it will genate reports and sent them via mail, and in subject to include date.
And the problem is when these reports failed if we run these reports next day the subect line will current day actually we are ruuning reports for previous day.
Could some one pls help me out from this...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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 we have to send another system
|
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...
| |