Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateVar Problem

Status
Not open for further replies.

rb74

Programmer
May 5, 2002
64
US
Hi everyone,

I am using a formula to calculate Age of an individual based on a date of birth and another date. When I am declaring the variables, I am getting the error: A Date is required here. The cursor is placed before the field of the individual's date of birth. Here is my declaration:

WhileReadingRecords;
DateVar DOB := {Members.AnnuitantDOB};
DateVar Retire := {Orders.RetirementDate};


The field AnnuitantDOB is a date/time field in Access along with the Retirement Date field. Why am I receiving this error message?

Thanks for help in advance,

Rob [Vader2]
 
Hi,

I figured it out. I declared each variable DateTimeVar.



Thanks,

Rob [Vader2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top