Hi all
I have done a search on this but the variants I came across vary slightly on what I want.
I have a text box where I enter a purchase order number e.g 350223. Often I enter consecutive orders. How would I have a button that would add one to the order number that I manually entered?
Thank you
Thank for that explanation
Thank you
This works great, I understand the Set(myPurchaseOrderNum, Value(TextInput1.Text) + 1);
But don't really understand the resets.
in the onselect of the button
Set(orderval,value(textinput1.text)); ///textinput1 is name of wherever you type an order number.
Set(orderval, orderval+1);
reset(textinput1)
Then in the default of textinput1 make the value orderval, and in onstart of app add Set(orderval,0) so that starts as 0
Use this code in the OnSelect property of your button
Set(myPurchaseOrderNum, Value(TextInput1.Text) + 1);
Set(myPurchaseOrderReset, true);
Set(myPurchaseOrderReset, false);
Put this code in the Default property of your text input
myPurchaseOrderNum
And also this code in the Reset property of the text input.
myPurchaseOrderReset
Now when you click the button it will increment the number you input automatically.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional