web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Basic combo box with S...
Power Apps
Answered

Basic combo box with SQL connection

(0) ShareShare
ReportReport
Posted on by 5

I am struggling with a VERY basic functionality. I have connected my SQL database with 2 tables:

 

Table1:

- EventID (pk)

- Machine_ID

- Value

 

Table2:

- Machine_ID (pk)

- Machine_Name

 

I insert a dropdown field onto my powerapp screen and for the Items field I have selected the Machine_Name from Table2. Now I have read that the Value field is the field that will be updated in the DB and the Items field is merely the list of available values. However, the Value field is restricted to the Value that I selected in the Items field. How can I make this work? I want to visually show the Machine_Names but update the Machine_ID in the fact table.

MichielW_0-1623315317593.png

 

Categories:
  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    @MichielW 

    Assuming that you're using an edit form with the data source set to Table1, the form will update the machine_ID field to whatever you define for the 'update' property of the form card that corresponds to the machine_ID field.

     

    Therefore, you would unlock the machine_ID card and add your dropdown control there. You would set the items property of the drop down to Table2, and the Value to Machine_Name.

     

    Assuming that you name the drop down control cboMachine, you would set the update property of the form to cboMachine.Selected.Machine_ID.

     

    To make sure that the existing dropdown record loads correctly, you would set the default property of your drop down control to the following:

    LookUp(Table2, Machine_ID=ThisItem.MachineID)
  • MichielW Profile Picture
    5 on at

    That did it ! The fact that the card is bound to the destination column and the dropdown itself is not got me confused. Thanks for the clear explanation! 

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    You're welcome @MichielW, glad that's working for you now!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard