Hi,
I'm stuck. Hope someone can help. My MS ACCESS skill isn't great so this might be a stupid question.
Is it possible and if so, how to I code in a way that I can make FORM names as a variable?
For example:
This particular code makes the Filter box = ABC on form "frmFilterIssue".
How can I make the part where "frmFilterIssue" is referenced into a variable so I can just feed it with different form names? This saves a lot of time writing long form names and repetitive codes.
Forms!frmFilterIssue!Filter1 = "ABC"
I thought some fancy quotations " " and && would do it but thats more like for SQL.
Forms! X !Filter1 = "ABC" - X is my variable... somehow I need to connect it properly..
Many thanks!
Bob
I'm stuck. Hope someone can help. My MS ACCESS skill isn't great so this might be a stupid question.

Is it possible and if so, how to I code in a way that I can make FORM names as a variable?
For example:
This particular code makes the Filter box = ABC on form "frmFilterIssue".
How can I make the part where "frmFilterIssue" is referenced into a variable so I can just feed it with different form names? This saves a lot of time writing long form names and repetitive codes.
Forms!frmFilterIssue!Filter1 = "ABC"
I thought some fancy quotations " " and && would do it but thats more like for SQL.
Forms! X !Filter1 = "ABC" - X is my variable... somehow I need to connect it properly..
Many thanks!
Bob