Re: Change Date Format
- From: "John Spencer" <spencer@xxxxxxxxx>
- Date: Tue, 26 Jun 2007 14:15:33 -0400
The name error usually occurs for a different reason.
Make sure you are settig the format PROPERTY for the control. If you are
entering
=Format([myDateField],"mm/dd/yy") as the control source and the control's
name is "MyDatefield" you will get an error. Access can't tell if you mean
to the date field or the control. If you are doing this try changing the
name of the control to txtMyDateField.
As I said, you should probably have the control's format properties set as
below
Format: "mm/dd/yy" (on Format tab of the properties dialog)
Control Source: [MyDateField] (on the data tab of the properties dialog)
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
"John Quinn" <JohnQuinn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C09E3990-ACD1-42B4-9D3F-856DDCF425D3@xxxxxxxxxxxxxxxx
John;
Thanks for getting back to me. Yes I have tried this and all I get
on the report is #Name?
The data comes from a field in the table defined as a Date/Time
field.
Still fighting the problem. I have called some programmers who know
Access and they are also trying to help. I can change my whole
application
around, but the IBM guys are really having a ball at my expense.
Thanks Again.
John
"John Spencer" wrote:
You should be able to set the format property of the control to
"mm/dd/yy"
to get it to show 06/01/05 for June 6, 2005
Is that what you have tried?
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
"John Quinn" <JohnQuinn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D9BE4D00-1B13-4ACD-A81A-775B863DE59C@xxxxxxxxxxxxxxxx
I am trying to print a date field as 2 character(s) Month, 2
Character(s)
day, "Need Leading Zeroes", and two diget year.
I select properties on my date field. Go to my Format Tab, and on the
Format Line have tried for days to enter the syntax it wants.
It is hard to say how many I tried!
Can I just put the format in this text box without having to try to
learn
VBA?
Thank You for any help!
John Q
.
- Follow-Ups:
- Re: Change Date Format
- From: Jaazaniah
- Re: Change Date Format
- References:
- Re: Change Date Format
- From: John Spencer
- Re: Change Date Format
- Prev by Date: Re: Date type lost in 2nd query
- Next by Date: Detail section results orientation
- Previous by thread: Re: Change Date Format
- Next by thread: Re: Change Date Format
- Index(es):
Relevant Pages
|