I have a query based on 2 tables. Table A has loadDates. Table B has loadDateChanges(every time a loadDate changes in Table A, Table B generates a new record traclomg the change).
I have a yes/no field in table B called "update" that automatically updates every night all records that are "no" to "yes".
I have a report that automatically prints before the update every night, and it's printing all records whose update field is still "no". This report shows all of the current changes during that day with the most recent loadDate.
Now that I have that information, they want more. They want the previous loadDate. I'm not sure how to get this. I thought of a sum query using table B, but I don't want the max of the entryDate and time (date of the loadDateChange). I want the date just before the max.
Is there any way to do this?
I hope I have explained this clearly. If not, please let me know and I will do better. I appreciate any help.
Thank you in advance!
Michele
I have a yes/no field in table B called "update" that automatically updates every night all records that are "no" to "yes".
I have a report that automatically prints before the update every night, and it's printing all records whose update field is still "no". This report shows all of the current changes during that day with the most recent loadDate.
Now that I have that information, they want more. They want the previous loadDate. I'm not sure how to get this. I thought of a sum query using table B, but I don't want the max of the entryDate and time (date of the loadDateChange). I want the date just before the max.
Is there any way to do this?
I hope I have explained this clearly. If not, please let me know and I will do better. I appreciate any help.
Thank you in advance!
Michele