# Cant update following row - Check in/Check out

**URL:** <https://community.glideapps.com/t/cant-update-following-row-check-in-check-out/72566>\
**Category:** Ask for Help\
**Created:** [April 14, 2024, 1:05pm UTC](https://community.glideapps.com/t/cant-update-following-row-check-in-check-out/72566 "2024-04-14T13:05:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guy\_fishman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/guy_fishman/32/73564_2.png) [@guy\_fishman](https://community.glideapps.com/u/guy_fishman)\
**Post date:** [April 14, 2024, 1:05pm UTC](https://community.glideapps.com/t/cant-update-following-row-check-in-check-out/72566/1 "2024-04-14T13:05:41Z")

</div>

Hey everyone,

I’m new to Glide and working on an attendance app. Here’s a brief overview:

- I have a Users table with dummy data (Row ID, Name, Email).
- Attendance table to record clock-in and clock-out times.

My issue:

- I’ve set up buttons for Clock In and Clock Out.
- When I clock in and out, the first row updates correctly.
- But subsequent clock-in/ clock-out create new rows without updating the corresponding clock-out time.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/4/847b2c00a86d37a19eb7cbde6e1fe4fff08fa7ed.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/6/76a81dbe7983d1cdc7904e1792ee6b2f7dd9a333.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/6/f6cb1ba3bda047944732ebb75b271e6e5a04dad3.png)

I’ve tried using switches for this, but can’t find the option to add actions.

Feels like I’m missing something so any help would be appreciated!

Thanks.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 14, 2024, 1:45pm UTC](https://community.glideapps.com/t/cant-update-following-row-check-in-check-out/72566/2 "2024-04-14T13:45:47Z")

</div>

What do your button actions look like. Typically the first button would be an add row action and the second button would be a set column action that sets a value through a relation or single value to the last row.

---

<div class="post-metadata">

**Author:** ![guy\_fishman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/guy_fishman/32/73564_2.png) [@guy\_fishman](https://community.glideapps.com/u/guy_fishman)\
**Post date:** [April 14, 2024, 1:59pm UTC](https://community.glideapps.com/t/cant-update-following-row-check-in-check-out/72566/3 "2024-04-14T13:59:10Z")

</div>

This is the Clock In Button:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/c/9c28fcfb24bd26cfbd23b3330cda624bdc950527.png)

And thats the Clock Out:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/3/1333e9e15603afc0c9b563b1aa8d0e9f61637dd9.png)

Why do I need a relation in this case? since I’m already working on the attendance table?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 14, 2024, 2:12pm UTC](https://community.glideapps.com/t/cant-update-following-row-check-in-check-out/72566/4 "2024-04-14T14:12:33Z")

</div>

You added a row but your screen is still sitting on the first row. The Set Column action is going to update the row that the screen is attached to, which is most likely the first row. You may be able to set a filter on the screen so it attaches to the last row based on the filter, once the new row is added, but a single relation column or a Single Value → Whole Row column can get you there too, and you just need to change the source in the Set Column action to that relation.

To help clarify first, which table is that screen attached to? The user table or the attendance table?

---

<div class="post-metadata">

**Author:** ![guy\_fishman](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/guy_fishman/32/73564_2.png) [@guy\_fishman](https://community.glideapps.com/u/guy_fishman)\
**Post date:** [April 14, 2024, 3:35pm UTC](https://community.glideapps.com/t/cant-update-following-row-check-in-check-out/72566/5 "2024-04-14T15:35:21Z")

</div>

I was working on the attendance table - which was a more problematic way. Managed to figure it out by changing to the User table and then adding a row to the attendance table at the clock out action. Much obliged!
