I have a form with a listbox and a subform. The subform has to be updated when the listbox is clicked.
In the subform i have a query on opening the form.
SQL = "SELECT field FROM table WHERE id = " & listbox.value
Me.Recordsource = SQL.
I tryed Forms!FormSubToezicht.repaint in the onclick of the listbox, but that doesn't work and gives an error.
In the subform i have a query on opening the form.
SQL = "SELECT field FROM table WHERE id = " & listbox.value
Me.Recordsource = SQL.
I tryed Forms!FormSubToezicht.repaint in the onclick of the listbox, but that doesn't work and gives an error.