I'm not particularly fond of forms in PowerApps nor am I well versed in their usage, but here is what I can share.
Using a form imply you're able to provide the item from the source you want to edit, which means if you want to edit the second shift you'll have to pick up the record and insert it in the form.
But, if you also want to provide data from previous shifts, I believe you can modify the "Default" property of the datacard to look for the information the employee from the previous shift entered.
So basically :
- You provide the form with the next shift (the record you want to edit)
- You modify the "Default" property of the datacard containing the information the employees can edit, so that it retrieve the information from the previous shift
You can use a "LookUp()" to retrieve the record of the previous shift, then submitting the form should edit the record of the next shift.
If(User submit first shift,
//First shift, let employee submit data on his own,
User submit second shift,
//Use LookUp() to retrieve first shift's information,
User submit third shift,
//Use LookUp() to retrieve second shift's information
)
I can't offer a code sample as I don't know how your database is structured, but I hope my advice was enough to guide you. I'd be happy to assist if you need further help.