cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

Patch user entered time to SQL?

I am trying to allow user to type in time to a text box and then patch that time into SQL time field. This works:

 

Patch(DB, Lookup(), {Variable : Text(Now(),"[$-en-US]hh:mm:ss"))

 

This doesn't work

Patch(DB, Lookup(), {Variable : Text_Input_Box})

 

If I have a Label with Text(Now(),"[$-en-US]hh:mm:ss") it shows something like 16:20:00 and then I attempt to type that exactly into Text Input I get an error? What am I missing?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Post Patron
Post Patron

Re: Patch user entered time to SQL?

I was missing .Text.

Patch(DB, Lookup(), {Variable : Text_Input_Box.Text})

 

Leaving this here in case anyone else makes same mistake.

View solution in original post

1 REPLY 1
Highlighted
Post Patron
Post Patron

Re: Patch user entered time to SQL?

I was missing .Text.

Patch(DB, Lookup(), {Variable : Text_Input_Box.Text})

 

Leaving this here in case anyone else makes same mistake.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (9,775)