Hi Folks,
I'm currently writing a Sub to deal with all my database reference code. If I was to normally refer to a form object like a textbox using a Sub I would normally type the follow :
Forms.FRMHomePage.txtFirstname = "Laoistom"
What I want to do is have variables passed into the SUB that will fill in the "FRMHomePage" and "txtFirstname" part of the statement above. However, I get errors everytime I try this. Is this a restriction of VBA or is there something i'm not seeing here.
Cheers,
Laoistom.
I'm currently writing a Sub to deal with all my database reference code. If I was to normally refer to a form object like a textbox using a Sub I would normally type the follow :
Forms.FRMHomePage.txtFirstname = "Laoistom"
What I want to do is have variables passed into the SUB that will fill in the "FRMHomePage" and "txtFirstname" part of the statement above. However, I get errors everytime I try this. Is this a restriction of VBA or is there something i'm not seeing here.
Cheers,
Laoistom.