Link to home
Start Free TrialLog in
Avatar of mhdhallak
mhdhallak

asked on

What's wrong?

Can anybody, for god's sake, tell me what's wrong with this fragment:

Dim DateToday As Date
Private Sub Command1_Click()
DateToday = Date
DateToday = Format(Date, "Long Date")
Me.Print DateToday
End Sub

Because I have used it and VB kept giving a type mismatch error message.

Please help me with this because I am about to go crazy!!
ASKER CERTIFIED SOLUTION
Avatar of Vbmaster
Vbmaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial