Bill,
Thanks for replying. I'm sorry but I put some wrong info in my initial post. I do have the format set up as mm/dd/yyyy NOT dd/mm/yyyy as I originally stated. So it does match the Windows regional settings. I was originally using an input mask of 99/99/00;_ which allowed the user to see __/__/__ for input. For February 9, 2006, I wanted the user to be able to enter 2/9/06. I wanted them to enter 2 in the month field and then have the cursor move to the day part of the date. Instead, you must enter 02 or you get an Access error. In an effort to correct that, I removed the input mask and used only the format of mm/dd/yyyy but the problem is still the same. I found a sample database where this works so I know that it's possible. That database uses Short Date and an input mask of 99/99/00;0 in both the table design and the form properties. I changed my database to match and it worked as long as I typed over an existing record. I have an ADD command button on my form which clears the form for new entries. When I click that, I get the mask __/__/__ even though I changed it and then it requires me to enter 02 instead of 2. So it obviously has something to do with my Add command button. I have code for 2 events with it. For the On Click event, I have --
Private Sub cmdadd_Click()
On Error GoTo Err_cmdadd_Click
Me.cmdbuttonsave.Enabled = True
Me.cmdcancel.Enabled = True
Me.cmdnextrecord.Enabled = False
Me.cmdprevious.Enabled = False
Me.cmddelete.Enabled = False
DoCmd.GoToRecord , , A_NEWREC
DoCmd.GoToControl "cmdcc"
Exit_cmdadd_Click:
Exit Sub
Err_cmdadd_Click:
MsgBox Err.Description
Resume Exit_cmdadd_Click
End Sub
and for the On Mouse Move event, I have -
Private Sub cmdadd_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me![OptMsg].Value = "Click to add a record"
End Sub
I would also like the cursor to go to the first position in the field when the user goes to that field. Hope this clarifies things and sorry for the confusion. I spent all day yesterday working on this so if anyone can help, I'd appreciate it.