Why is this returning a key error for displayed_member_id
         if member == ' ' or member == None or member == []:
                sg.Popup('No Member found for Member id '+id)
                window.Element('-firstn-').update('')
                window.Element('-lastn-').update('')
            else:

                member_id = str(member[0][0])
                window.Element('-displayed_member_id_number-').update(member_id)
                first_name = str(member[0][1])
                window.Element('-firstn-').update(first_name)
                last_name = str(member[0][2])
                window.Element('-lastn-').update(last_name)

                conn = Assignment_3_draft_1.dbconnect()
                Assignment_3_draft_1.createBookingTable(
                    conn=conn)
                fitness_classes = Assignment_3_draft_1.dbQuery(
                    conn=conn, sql="""SELECT booking_table.*,fitness_class.*
                    from booking_table
                    INNER JOIN fitness_class on fitness_class.fitness_class_id=booking_table.fitness_class_id
                    WHERE booking_table.id=?
                    """, params=(id))
                fitness_classes_data(fitness_classes)
                if len(fitness_classes) < 3:
                    update_available_classes(id)
                # conn.commit()
                conn.close()

        elif event=='-Submit-':
            print(values['-displayed_member_id_number-'])


the original element:
   col1a = [[sg.Text('Member ID', size=(20, 1)), sg.Text('First Name', size=(20, 1))],
             [sg.Text(key='-displayed_member_id_number-', size=(20, 1),enable_events=True),
              sg.Text(key='-firstn-', size=(20, 1))]
             ]