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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AM/PM added to time when editing textbox

Status
Not open for further replies.

msuguy71

Technical User
Apr 22, 2003
20
0
0
US
Hello. I have set some textboxes up to hold times that can either be manually entered by clicking in the textbox and entering the time or the time can be automatically entered by clicking on a label next to the textbox. Both the form textbox and the table field are set to short time with input masks of short time.

The problem is that if a time that was auto entered by clicking on a label (through vb code) is editied, Access changes the format of the time as soon as the textbox is clicked on to edit resulting in the need to delete the AM/PM designatior. This does not occur if editing a manually entered time. I used the following code in the operation:

Private Sub lblalsonscene_Click()
Me.Req_ALS_Onscene = Time
End Sub

How can I stop this from happening?

Thnks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top