actualli im creatin a database on the driving licnese issuing authority im a new vb user my problem is that i want the new validity date to be automatically displayed wen this text box is clicked the code im using is
dim text1 as date
dim text2 as date
text1.text= text2.text + 5 years
now this five years is giving error,....
plz suggest an accurate code for dis probelm soon thx
Sroxx
0
Newbie Poster
Recommended Answers
Jump to PostTry this and let me know if it worked...
Private Sub Form_Load()
Text1.Text = Format(Date, "mm/dd/yyyy")
End SubPrivate Sub Text1_Click()
Text2.Text = DateAdd("YYYY", 5, Date)
End Sub
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.