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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,528)