473,396 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unbound Text field for Date and time entry in access form

171 100+
Greetings
I am back with a new problem. I have a form with unbound textbox with format as ddmmmyy hh:nn. I have set the property of the field date picker = for dates. The problem is that when I select a date first it shows in the ddmmmyy hh:nn format, but if i change the date and change the time then it shows with seconds which I dont want.
I would like to show the field with ddmmmyy hh:nn and need to edit with the same format. When a user select the field it should not expand as general date format and the user needs to edit the hour and minute, but at the moment he has to be careful else it will end up editing the minutes and seconds.
In short I like to have an unbound TextBox control with
date and time shows as example : 25Dec12 18:15 and need to edit with the same format.
Hope I explained correctly. Thank you all in advance for the help
Dec 23 '12 #1
3 4862
zmbd
5,501 Expert Mod 4TB
That's a strange behavior.
I take it to mean that you are getting: 25Dec12 18:15:00 when you click in the field or using the date picker - in otherwords... how are you changing the field value?
Is there any vba associated with the field that edits/writes to the field? If so, I'd like to take a look at that code
Dec 23 '12 #2
rajeevs
171 100+
Thank you for the quick reply zmbd.
When I first select the date from date picker the field shows the date and time as 00:00. But after exiting and re-enter the field it shows only the date and if I add a differnet time other than 00:00 then again if u enter the field it will show the date and time with format dd-mm-yy hh:nn:ss.
Hope it is clear. I will attach a sample db with a single form having two unbound text fields without any vb involved.(But I dont know how to send the db to you
Thank you once again zmbd
Dec 23 '12 #3
NeoPa
32,556 Expert Mod 16PB
Rajeev, You needn't attach an example database unless requested. We always prefer that you explain the problem clearly in words where possible. An attached database saves you the time and effort of asking the question properly, but leaves us with the extra effort of working out what the question should have been vefore we can answer it. We prefer (and the site requires) you to ask the question properly. If any of us requests that you support this with an example attached then one can be attached at that point.

As for your control, it isn't very clear at this point what is happening and why. However, it is clear that the format you use is not a standard date or date and time format. I suspect then, that it will be treated as a string in some situations, and a string which the system is unable to interpret as a date. If you put spaces between the elements (Such as "d mmm yyyy"), you may find the problem disappears. If you try this and you still have the problem then please explain the problem in more precise detail and we'll see what we can do to help you find a more reliable way of handling this.
Dec 23 '12 #4

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

Similar topics

2
by: mcmcalex | last post by:
is there an easy way to make a date/time field (in Access) convert to a date field (in Excel) when using ms-query? I'm pretty good with xl, but new to access, so apologies if this is covered on p1...
1
by: Mike | last post by:
Hi all, Hum i just erased the whole message by mistake, :( Ok so i want to hide a specific field in an Access form using a toggle button, but i cant seem to get the right syntax. Right now im...
0
by: ncgonz | last post by:
please forgive any ignorance or illogical approaches, i am but a humble beginner. I have written a form (F_Auditorscorecards_Entry) for data entry that writes to a table...
5
by: amanda27 | last post by:
I have a database that we use in our department for the status of our projects. In the form when you pick a project from the dropdown list I have a subform that pulls the data entered for the...
5
by: Stan | last post by:
I am working on a database in ACCESS 2003. Six of the fields provide for entry of service dates 1 to 6 progressively recording when the client was serviced. The data type is Date/Time. I need to...
4
by: MunaAlBaloshi | last post by:
I am working with MS Access. But I want the date and time be automatically updated in the field. I know that I have to use VB codes. I try to write this code but it is not working. Private Sub...
3
by: isoquin | last post by:
I've looked, and not found much. I have a text field in a form named , which acquires its data through a control source of =getLocation() the getLocation() function returns a DLookup, which...
3
by: kate2272 | last post by:
Hi Guys, Thanks heaps for assisting with my last question. I would like to automatically update a new record with date / time but I was wondering if it is possible for it not to live update...
4
by: sumit kale | last post by:
Hi, Can somebody help me resolve my problem ? I am getting error when calculating total using unbound textfiled in subform. I have a main form called purchase_register_master and a subform...
4
by: bscott | last post by:
I am creating a linked table into access using a .csv file. One of the columns is a date/time in the following format: "06-01-2010 06:10 AM ". When I import it as Data Type Date/Time, Access...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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...
0
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
tracyyun
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...

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.