I try to make dynamic buttons which call a function. This works:
btn.OnAction = "'DieseArbeitsmappe.Update_DB'"
But when I add arguments, it breaks (1st argument is a string, 2nd is the button object):
btn.OnAction = "'DieseArbeitsmappe.Update_DB " & Chr(34) & t.Text & Chr(34) & ", " & btn & "'"
It throws:
Object doesn't support this property or method
What have I missed?
PS: Also this variant didn't work:
btn.OnAction = "'DieseArbeitsmappe.Update_DB """ & t.Text & """," & btn & " '"
Same error as above.