Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

type mismatch after saving data

$
0
0
hey

i get error type mismatch when i save something

i have to combobox with numbers in at and the combos values are text in the DB
the thing is it saves me the data in the listview and after gives me the error.

this is the line i get the error
Code:


Private Sub CmbStart_Click()
    Dim Str As String
    Str = CmbStart.text
    CmbEnd.clear
    For I = CmbStart.ListIndex To 61
      CmbEnd.AddItem Format(CDate(Str) + "00:15", "hh:mm") this line i get error
        Str = CmbEnd.List(CmbEnd.NewIndex)
    Next
    CmbEnd.ListIndex = 0
End Sub


Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>