Need your expertise vb6 programmer
Hello there!
I need your expertise in vb6. I made a new exercise for my vb6 subject using database Microsoft access. With the fields of FirstName, MiddleName, LastName, Birthdate and Age. and there is correct information of my family in every fields. Using navigation command. Im using Microsoft ADO Data control 6.0 or ADODC. Im using Microsoft.Jet. OLEDB 4.0 to connect the database. With text box in the form in every fields. I bind the all fields except the age. I want the correct age display in the text box in every family information i have. Can share me a correct procedure or code for my exercise i made. Thank you very much....
dwiniers
Junior Poster in Training
57 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Lets see what you have done so far.
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
Here's the example:
First Name: Edwin
Middle Name: Quiroben
Last Name: Paglinawan
Birth Date: Oct/6/1970
Age:
On age text bxo it should display the correct age with my birthdate minus with the year of the system. The Edwin Quiroben paglinawan and oct/06/1970 is in text box because they are in the database....
dwiniers
Junior Poster in Training
57 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
Thank you sir i got your code its working.
txtAge.text = DateDiff("YYYY", DateBD, DateNow)
dwiniers
Junior Poster in Training
57 posts since Oct 2011
Reputation Points: 10
Solved Threads: 0
very good i was also in need of that..
good job.
4ukh
Junior Poster in Training
70 posts since May 2008
Reputation Points: 13
Solved Threads: 1