cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BrianHFASPS
Responsive Resident
Responsive Resident

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
BrianHFASPS
Responsive Resident
Responsive Resident

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
BrianHFASPS
Responsive Resident
Responsive Resident

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (94,961)