indesisiv
Access - What's that?
- Local time
- Today, 17:00
- Joined
- Jun 13, 2002
- Messages
- 265
I have a form with a Date of Birth on it. I also have a text box that needs to be the clients current age. I am trying to do something like Me.txtAge.Text = Date - Me.txtDob.Text
but the problem that I get with this is that I get a type mismatch because the second part of the calculation is coming out as a string.
So the question is this: Is there a way to convert the string date (looks something like "18/04/1977") into an actual date for the calculation. Or is there an easier way.
Thanks in advance for any help.
Steve
but the problem that I get with this is that I get a type mismatch because the second part of the calculation is coming out as a string.
So the question is this: Is there a way to convert the string date (looks something like "18/04/1977") into an actual date for the calculation. Or is there an easier way.
Thanks in advance for any help.
Steve