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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems calculating a fields data

Status
Not open for further replies.

spurs100

Technical User
Jun 5, 2002
20
GB
Hi all,

I have an appointments table with the following fields:

Patient ID || Appointment Date || Appointment Time || Appointment type || Last Appointment

I need the Last Appointment field to calculate when the patients last appointment was using the data in this table. How can i do this? Can anyone help?
 
Try using a DLookup or DMax function, as such:

=DLookup("[AppointmentDate]","NameOfTable","[PatientID] = 'CriteriaForPatientID'")
Roy
aka BanditWk
Las Vegas, NV
roy@cccamerica.org
RLMBandit@aol.com (private)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top