dbTalk Databases Forums  

disabling access 2007 calendar

comp.databases.ms-access comp.databases.ms-access


Discuss disabling access 2007 calendar in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roger
 
Posts: n/a

Default disabling access 2007 calendar - 08-03-2010 , 05:35 AM






it appears that access2007 has a built-in calendar
that is displayed when a date based control gets focus

is there a way to disable this feature

my application already has a calendar feature
and my date fields are formatted as 17-Aug-10

the built in calendar, once a date is selected
displays it as 8/17/2010 until the control loses focus
and the formatting is done

Reply With Quote
  #2  
Old   
Jon Lewis
 
Posts: n/a

Default Re: disabling access 2007 calendar - 08-03-2010 , 06:04 AM






You can disable it by using the Show Date Picker property of the table field
and/or form control.

Jon


"Roger" <lesperancer (AT) natpro (DOT) com> wrote

Quote:
it appears that access2007 has a built-in calendar
that is displayed when a date based control gets focus

is there a way to disable this feature

my application already has a calendar feature
and my date fields are formatted as 17-Aug-10

the built in calendar, once a date is selected
displays it as 8/17/2010 until the control loses focus
and the formatting is done

Reply With Quote
  #3  
Old   
Roger
 
Posts: n/a

Default Re: disabling access 2007 calendar - 08-03-2010 , 11:54 AM



On Aug 3, 5:04*am, "Jon Lewis" <jon.le... (AT) cutthespambtinternet (DOT) com>
wrote:
Quote:
You can disable it by using the Show Date Picker property of the table field
and/or form control.

Jon

"Roger" <lesperan... (AT) natpro (DOT) com> wrote in message

news:97dcd614-c087-45b4-b52d-d42225e7fb15 (AT) i31g2000yqm (DOT) googlegroups.com...



it appears that access2007 has a built-in calendar
that is displayed when a date based control gets focus

is there a way to disable this feature

my application already has a calendar feature
and my date fields are formatted as 17-Aug-10

the built in calendar, once a date is selected
displays it as 8/17/2010 until the control loses focus
and the formatting is done- Hide quoted text -

- Show quoted text -
um...form control works... but I've got many forms/controls
Is there a database option to turn the 'show date picker' off ?

Reply With Quote
  #4  
Old   
Jon Lewis
 
Posts: n/a

Default Re: disabling access 2007 calendar - 08-04-2010 , 03:17 AM



Not that I'm aware of

Jon

"Roger" <lesperancer (AT) natpro (DOT) com> wrote

On Aug 3, 5:04 am, "Jon Lewis" <jon.le... (AT) cutthespambtinternet (DOT) com>
wrote:
Quote:
You can disable it by using the Show Date Picker property of the table
field
and/or form control.

Jon

"Roger" <lesperan... (AT) natpro (DOT) com> wrote in message

news:97dcd614-c087-45b4-b52d-d42225e7fb15 (AT) i31g2000yqm (DOT) googlegroups.com...



it appears that access2007 has a built-in calendar
that is displayed when a date based control gets focus

is there a way to disable this feature

my application already has a calendar feature
and my date fields are formatted as 17-Aug-10

the built in calendar, once a date is selected
displays it as 8/17/2010 until the control loses focus
and the formatting is done- Hide quoted text -

- Show quoted text -
um...form control works... but I've got many forms/controls
Is there a database option to turn the 'show date picker' off ?

Reply With Quote
  #5  
Old   
Michiel Rapati-Kekkonen
 
Posts: n/a

Default Re: disabling access 2007 calendar - 08-04-2010 , 06:48 AM



But maybe this code can do it for you.
The code is to be put in a module and run from the Immediate window.
It goes through all the forms in the database and sets the 'Show Date
Picker' of the textboxes Off.

Michiel


Sub changeDatePicker()
Dim i As Integer
Dim strFormNme As String
Dim n As Integer
Dim lngCntrlType As Long
Const busy As Boolean = True

Set myDb = CurrentDb

On Error Resume Next

For i = 0 To myDb.Containers("Forms").Documents.Count - 1
strFormNme = myDb.Containers("Forms").Documents(i).Name
DoCmd.OpenForm strFormNme, acDesign, , , , acIcon

n = 0
While busy
lngCntrlType = Screen.ActiveForm.Controls(n).ControlType
If lngCntrlType = 0 Then GoTo nextForm

If lngCntrlType = acTextBox Then
Screen.ActiveForm.Controls(n).ShowDatePicker = 0

n = n + 1
lngCntrlType = 0
Wend

nextForm:
DoCmd.Close acForm, strFormNme, acSaveYes
Next

End Sub



__________________________________________________ __________________________________________________ __________________________________




"Jon Lewis" <jon.lewis (AT) cutthespambtinternet (DOT) com> wrote

Quote:
Not that I'm aware of

Jon

"Roger" <lesperancer (AT) natpro (DOT) com> wrote in message
news:a1ca784f-ebbd-45b1-8c61-49e29cea61bb (AT) q16g2000prf (DOT) googlegroups.com...
On Aug 3, 5:04 am, "Jon Lewis" <jon.le... (AT) cutthespambtinternet (DOT) com
wrote:
You can disable it by using the Show Date Picker property of the table
field
and/or form control.

Jon

"Roger" <lesperan... (AT) natpro (DOT) com> wrote in message

news:97dcd614-c087-45b4-b52d-d42225e7fb15 (AT) i31g2000yqm (DOT) googlegroups.com...



it appears that access2007 has a built-in calendar
that is displayed when a date based control gets focus

is there a way to disable this feature

my application already has a calendar feature
and my date fields are formatted as 17-Aug-10

the built in calendar, once a date is selected
displays it as 8/17/2010 until the control loses focus
and the formatting is done- Hide quoted text -

- Show quoted text -

um...form control works... but I've got many forms/controls
Is there a database option to turn the 'show date picker' off ?

--- news://freenews.netfront.net/ - complaints: news (AT) netfront (DOT) net ---

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.