Hi @Adinator ,
You also need to allow for someone deleting a record, so you cannot simply count the Rows - the value you are looking for is
First(
Sort(
SPListName,
ID,
SortOrder.Descending
)
).ID + 1
You can add this to the Default of a card hidden on a Form (I will use the field name Counter here)
If(
YourFormName.Mode = FormMode.New,
First(
Sort(
SPListName,
ID,
SortOrder.Descending
)
).ID + 1,
ThisItem.Counter
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps