All,
I am looking to create a query or code that will do the following.
I have a table that has the following fields
table - tblInvoiceTransactions
BAN
AccrualMonth
InvoiceDate
ApprovedforAP
For each Accrual month there can be multiple entries
IE
Ban Accural Month InvDate ApprovedAP
12345 01/01/01 01/15/01 Y
12345 01/01/01 01/15/01 N
12345 01/01/01 01/15/01 N
12345 02/01/01 02/01/01 N
There is other data that makes each of these unique. What I need to create is something that will take the current record when ApprovedAP is set to Y and look and find the all the subsequent records with the same Accural Month, InvDate and BAN and update the ApprovedAP to Y. This will help avoid users fogetting to change the other associated line items to yes.
I hope i have explained this clearly enough. Any help with this is greatly appreciated.
Steve
I am looking to create a query or code that will do the following.
I have a table that has the following fields
table - tblInvoiceTransactions
BAN
AccrualMonth
InvoiceDate
ApprovedforAP
For each Accrual month there can be multiple entries
IE
Ban Accural Month InvDate ApprovedAP
12345 01/01/01 01/15/01 Y
12345 01/01/01 01/15/01 N
12345 01/01/01 01/15/01 N
12345 02/01/01 02/01/01 N
There is other data that makes each of these unique. What I need to create is something that will take the current record when ApprovedAP is set to Y and look and find the all the subsequent records with the same Accural Month, InvDate and BAN and update the ApprovedAP to Y. This will help avoid users fogetting to change the other associated line items to yes.
I hope i have explained this clearly enough. Any help with this is greatly appreciated.
Steve