I have a patient database for a hearing aids business. My main form has all the demographics and I have buttons to access different forms with information like hearing aids, insurance Billings, batteries.
My patients get batteries every six months. Is there a way I can tell they are due for batteries when I open up the main form? Like a pop up or a field that becomes yellow or anything. Batteries is a separate table and I have a query calculated field to add 6 months every time they pick up batteries.
Now, we have to open the form to see if they are eligible. It would be nice to have something on the main form to let us know they are eligible on the current day. Do you think it's possible?
Thank you for directing me to these tech help video. How would I write my Dlookup to show if batteries are due? Patients are supposed to get batteries every six months. So if a patient comes today and I open up the main form, I need the pop up to say he is due today for batteries. He could have picked up batteries 8 months or 10 months ago. Can you help me write the last part of the Dlookup...it will be Dlookup "customer ID", "BatteryT", "SixMonthdue=..........( what wd I put in there to show he is due today?)
My SixMonthdue is a calculated field in a query based on DateBattGiven. Batteries due are 6 months after DateBattGiven.
Thanks Kevin. Can I use BatteryQ instead of BatteryT in the formula you gave? SixMonthdue is a calculated field in BatteryQ. Also since the customer keeps getting batteries every 6 months, I will need the latest due date from that column. BatteryID is the Autonumber for the query and Customer ID is the foreign key. Sorry if I am not making it clear. I am trying to learn access but this is a bit advanced for me and I need it now.
Kevin Robertson 5 months ago
To get the latest due date you can use the DMax Function.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.