Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Datepicker selection pass to a column in a table

(1) ShareShare
ReportReport
Posted on by 2
Hi All,
 
How do I pass the selected date from a datepicker control to a column of a sql table value already connected in the power app, so the value get stored in the table.
 
Regards,
Categories:
  • Suggested answer
    Michael E. Gernaey Profile Picture
    41,107 Super User 2025 Season 1 on at
    Datepicker selection pass to a column in a table
    Hi,
     
    You need to somehow be able to identify what Record in SQL you want to update. Otherwise no code in the App will know how to updte the row you want.

    So if you JUST have a date picker, then you cannot do it.
     
    But let's pretend in SQL you have a UniqueID Column and the record you want to update is 12345
     
    In your Date Picker pick your date
     
    Then do a Patch
     
    Patch(MySqlTable, LookUp(MySqlTable, UniqueID = 12345, {MyDateField: DataPicker.SelectedDate });
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard