rgomez1999
Technical User
I posted a question last week but did stated my question wrong. Here's the new information.<br><br>I'm working on a project where clients come everyday to see the doctor at our facility. On my form I have a field called DateOfVisit with the source as being =Date() which puts in today's date (PC Date). What I'd like is that<br>once I use my Find Record combo box to lookup a client is for the DateVisit to automatically keep a history of this visit into a history table. Therfore, when I run my EndOfDay report on the number of visits of both past and present for all the clients or just a specific client (i.e. John Doe visited 15 times in May 2000 and these are the dates of visits) I'd like Access to give me the<br>results based on a query that I will create from this History table.<br><br>What I've done so far:<br><br>I created a separate table called tblHistoryVisits (primary key is PatientID)and on the Main table where I keep all the clients personal records the primary key for that table is also PatientID. Note, the DateOfVisit is on the Main table with a date field of =Date(). I also added a DateOfVisit field to the tblHistoryVisits table and created a relationship between both PatientID and used the Enforce Referiental Integrity with Cascade Update and Delete. However, when I go to the tblHistoryVisits there's nothing there.<br><br>(CODES WILL BE OF A GREAT HELP)<br><br>Any help is GREATLY appreciated.<br><br>Thank you.<br>