'Show the right column on a form through buttons from a different form

In my access database, I have 2 seperate forms. The first one has 5 buttons and the other one is filled with comboboxes. Each combobox has 5 different columns to chose from. I wanna be able to just click on a button and be sent to the other from with the correct column/data piece being shown on my combobox. The left one is the first form with the buttons, the right one is the form with all of the comboboxes



Solution 1:[1]

You're overwriting the figure with the subplots(), if you want to update the axes you can just use those of the current figure.

Change this line:

        self.area_plot.figure, self.ax = plt.subplots()

To this:

        self.ax = self.area_plot.figure.axes[0]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 musicamante