I need some help with an error.
I am trying to open and filter a form by pushing a push button on another
form.
The error is an: “Error 423: Property or method not found: Filter.”
Here is the code that generates the error:
dim frm as object
dim id as integer
id = ThisComponent.Drawpage.Forms.getByName("MainForm").getByName("Id").Text
frm = ThisDatabaseDocument.FormDocuments.getbyname("frmKingdom")
frm.Filter = "('tblKingdom'.'Id' = " & id & ")"
frm.open
The line that starts with “frm.Filter” is the one that causes the error. I
have tried putting the “frm.open” before the line with “frm.Filter”, but the
same error still occurred.
Any ideas?