Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PM Time Only - Access 97 1

Status
Not open for further replies.

donnadee

IS-IT--Management
May 30, 2001
216
US
I have created a medium time field in an Access97 database.
The field is TimeClosed. 99% of the records will have times that close in the PM.

Access automatically fills in AM at the end when users type 5:00

Can this be reset to make it autofill in PM instead of AM as the preference? Thanks in advanced. :)
 
Yeah,

Create an input mask: 99:00" PM"

HTH
Mike

[noevil]
 
mgolla,

I created the mask on the form and as soon as I tab through, it reverts to AM still. I also tried the input mask in the table, but still reverts to AM.

I want to type 9:00 and have it convert to 9:00 PM

Should I drop medium time?
 
Try this instead,

Remove the InputMask and on the AfterUpdate of the field put this code

Field1 = DateAdd("h",12,Field1)

Leave the Medium Time format on it for it to work

HTH
Mike

[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top