![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have a table named CUSTOMERS with a field named DOB. It has a mm/dd/yyyy format. It displays dates of birth. I would like to add on a form two text boxes named txtDOB and txtAGE. The txtDOB will have as record source the table CUSTOMERS and the field DOB. I would like to add the unbound txtAGE control to convert the Date of birth to Age. Can any one tell me how and where I should write the the code? Thanks. |
#3
| |||
| |||
|
|
jprma (AT) tin (DOT) it (Paolo) wrote in message news:<9f41a860.0308120133.3ebe5544 (AT) posting (DOT) google.com>... Hello, I have a table named CUSTOMERS with a field named DOB. It has a mm/dd/yyyy format. It displays dates of birth. I would like to add on a form two text boxes named txtDOB and txtAGE. The txtDOB will have as record source the table CUSTOMERS and the field DOB. I would like to add the unbound txtAGE control to convert the Date of birth to Age. Can any one tell me how and where I should write the the code? Thanks. First, to set the field for the DOB, you can use the forms wizard to help with that, by simply selecting the table and that field. Otherwise you can add the field and change the record source. As for your second question, what are you wanting to convert the date to? |
#4
| |||
| |||
|
|
Thanks, yes, what I need is simply convert the date of birth to age/months. thanks. janthony (AT) harrahs (DOT) com (janthony) wrote in message news:<41de23b5.0308120720.7b932f6e (AT) posting (DOT) google.com>... jprma (AT) tin (DOT) it (Paolo) wrote in message news:<9f41a860.0308120133.3ebe5544 (AT) posting (DOT) google.com>... Hello, I have a table named CUSTOMERS with a field named DOB. It has a mm/dd/yyyy format. It displays dates of birth. I would like to add on a form two text boxes named txtDOB and txtAGE. The txtDOB will have as record source the table CUSTOMERS and the field DOB. I would like to add the unbound txtAGE control to convert the Date of birth to Age. Can any one tell me how and where I should write the the code? Thanks. First, to set the field for the DOB, you can use the forms wizard to help with that, by simply selecting the table and that field. Otherwise you can add the field and change the record source. As for your second question, what are you wanting to convert the date to? |
![]() |
| Thread Tools | |
| Display Modes | |
| |