Associate
Anyone know how do get this thing working, been trying for the best part of 2 hours now grrr!! Lost my nerve now.
Basically here is some code I’ve made to work out the difference between the date entered and and current date.
Dim FirstDate, msg as string
Dim SecondDate as string
FirstDate = InputBox(“Enter a date”)
SecondDate = CDate(FirstDate)
Msg = “Days from today: “ & DateDiff(DateInterval.Day, Now, SecondDate)
MessageBox.Show(Msg)
The problem is I have to use a Class to validate data entry, I’ve tried to create on multiple times but it just doesn’t work. The Class has got to receive a string value and returns a date, If the string value received is date in nature then it is converted to a date and returned to the calling code otherwise the current date is returned
Basically here is some code I’ve made to work out the difference between the date entered and and current date.
Dim FirstDate, msg as string
Dim SecondDate as string
FirstDate = InputBox(“Enter a date”)
SecondDate = CDate(FirstDate)
Msg = “Days from today: “ & DateDiff(DateInterval.Day, Now, SecondDate)
MessageBox.Show(Msg)
The problem is I have to use a Class to validate data entry, I’ve tried to create on multiple times but it just doesn’t work. The Class has got to receive a string value and returns a date, If the string value received is date in nature then it is converted to a date and returned to the calling code otherwise the current date is returned