Access Report Show # instead of Date - ms-access

My access report is showing ##### instead of showing the datetime value in the row. When I clicks on it the ##### turn outs to the actual date as if it was hidden behind it. I have tried changing the date format to Long Date Medium Date and Short Date in both the related table as well as in the report's Format properties but is it not working at all.
Why is it so?

The problem you have can be because there's no enough space in the textbox (or other control) to display the value you need.
You can solve this by either increasing the size of the control or decreasing the size of the font you are using.
An alternative can be to convert the value you want to display into a string. Since you are dealing with dates, I sugest you use the format$() function. For example:
=format$([yourDateField],'yyyy-mm-dd')
will return a date in the year-month-day format. Check the online help to know more about this function.
Hope this helps you

Related

Microsoft Access formatting: Need format to display either Date or "0". 0 keeps displaying as 12:00:00AM, how to fix?

I need to make it so that the one field either displays the Date or the value of 0. They're two separate formats, and so I can't get Access to mix the two up. Logic functions keep displaying errors for me.
You can do conditional formatting like so as a "custom" format:
[=0] 0; [>0] mm/dd/yyyy;
[=0] checks if the value is zero, if so, the cell is set to 0. If it is greater than 0, use mm/dd/yyyy or whatever date format you like.
You can use Format. Rename your textbox to be different from the date field name and this as ControlSource:
=Format([YourDateField],IIf([YourDateField]=0,"0","yyyy-mm-dd"))

Changing the date format in Access 2010

I want to show the Purchase_Date in dd/mm/yy format . I already set the Format in form properties as dd/mm/yy
When i select a cell in database view it shows the date in dd/mm/yy but it still shows the date in mm/dd/yy otherwise
I need 05/02/14 to show as 02/05/14 at all times
This is by design. When the control gets focus, it will revert to the default format as to the settings in Windows.
A workaround can be to use three concatenated textboxes, but it requires some code to operate nicely.
You have to go to the Region and Language in the Control Panel and choose "English (Autralia)" as the format in the formats tab. Then change the short date format from the option below as you require. The format you want is available there.
Edit:
A better way to do it is to apply your own format. In the Format property of the properties of the Date/Time field, you can type in the format you want using placeholders and separators.
Hope this solves your problem.

SSRS 2008 Time Format for a chart. does not work

I have an ssrs chat, I want to bind time valeus to y axis.
Data comes in "2013-11-21 16:07:31.000" format
I need 16:07 value as time. but no function give me that.
when I use cdate, and then Format it does not work . HHmm returns me an inteeger 1607 bur HH:mm doesnt work.
please help I am about to go crazy!
Try leaving your value, or setting up a calculated field that just uses =CDate(Fields!AverageTime.Value) or =DateTime.Parse(Fields!AverageTime.Value)
Then, I assume you use that date field as a category on your graph. Set the format on the X axis to HH:mm as shown below. Let the graph handle the display using format strings, don't use the Format function.

Data Type Error when added Input Mask on Date Time Field

i have a date/time field called MyDate. Originally, its format is mm/dd/yyyy and there is no input mask. The Date Picker is also set. I then added input mask using Short date , changed the default input maks to (99-99-0000;;_) and change the format to mm-dd-yyyy. However, when i switch to DataSheet view , all my dates are changed from mm/dd/yyyy to mm-dd-yyyy (which is the correct behaviour right? ) and when I tried to enter a new date or modify existing date, it says "The value you entered does not match Date/Time data type in this column". Plus, the DatePicker is missing. How can I resolve this. thank you
The date time picker is not available if an input mask is applied to a field: http://office.microsoft.com/en-us/access-help/add-and-customize-date-and-time-formats-HA010078108.aspx#_Toc272229486
Regarding the error, have you considered using your regional settings in the control panel, which sets the defaukt date display for all (most?) applications?
Dates in Access are stored as numbers, so you can format them however you like, but I suspect the input mask may need to match the regional settings, although I am not certain.

MS Access, number formatting

I need to display a number (real), ie 1234.567 like "1.234,56" or "1,234.56". I know that I have to use Format() but I can't figure it out. (It's for a textbox where the 'Control Source' property is set to some number field)
This should do it:
Format(number, "#,##0.00")
Where the actual separators used depend on the current locale setting.
Below method worked for me in ms access 2000-2003.
You should make changed in Table and in reports.
Table.
Go to the required field, Change data type to Nnmber, Field size to Decimal, Format to Standard.
Report.
Select the control where you want the thousand separator, select properties the format Select standard,, Decimal places 2.