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!

What's wrong with my Datetime statement

Status
Not open for further replies.

sthmpsn1

MIS
Sep 26, 2001
456
0
0
US
I get this error. "Variable 'thedate' hides a variable in an enclosing block."

Dim thedate as DateTime = "" & themonth & "/01/" & theyears & ""
 
You'll usually get this error if you have already declared this variable earlier in your function. Make sure you haven't already dim'ed it earlier!

HTH Kevin B.
.Net Programmer [thumbsup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top