Click here to Skip to main content
15,904,638 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
Private Sub CmbMonth2_Click()
    Dim i As Integer, dt As String
    CmbDay2.Clear
    dt = CmbDay1.Text & "/" & CmbMonth1.Text & "/" & CmbYear1.Text
    For i = 1 To DateDiff("d", DateAdd("d", 7, dt), DateAdd("m", 1, DateAdd("d", 7, dt)))
        CmbDay2.AddItem i
    Next i
    CmbDay2.Text = Day(DateAdd("d", 7, dt))....error in this line 386 runtime text property read only.
End Sub
Posted
Comments
Sergey Alexandrovich Kryukov 24-Aug-13 0:19am    
This is not a question. You need to tell us what you wanted to achieve, what did you expect from your code, what did you observe instead and why do you think this is wrong.
—SA

1 solution

 
Share this answer
 
Comments
CHill60 12-Sep-13 16:11pm    
Spot on. My 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900