I'm trying to get a Military Time from the user's 2 inputs
Here is the code that works, but it's standard time.
VB Code:
  1. Private Sub OKButton_Click()
  2.    If cboHour.Text <> "" Then
  3.       If cboMinute.Text <> "" Then
  4.          frmAlarmClock.lblSetTime.Caption = TimeSerial(Val(cboHour.Text), _
  5.          Val(cboMinute.Text), 0)
  6.          MyTime = TimeSerial(Val(cboHour.Text), Val(cboMinute.Text), 0)
  7.          frmAlarmClock.Enabled = True
  8.          frmAlarmClock.optOn.Enabled = True
  9.          frmAlarmClock.optOff.Enabled = True
  10.          Unload Me
  11.       End If
  12.    End If
  13.  
  14. End Sub

I tried this to make it Military Time, but it gave me a Type Mismatch error. How do I take 2 numerical values (inputed by the user) and make them come out as a Military time.
VB Code:
  1. MyTime = Format(cboHour.Text) And (cboMinute.Text), "hh:mm:ss")

TIA