[AccessD] Refering to a control with a variable

Gustav Brock Gustav at cactus.dk
Fri May 21 01:10:30 CDT 2010


Hi Dale

Now I'm confused. I thought you were referring to:

    Me.Controls.Item("Forms![frmDate]![frmsubMonth].Form![subForm" & intLoop & "].Form![lblDate]").Caption = "Access"

Here you need to remove the last bang ("!"):

    Forms![frmDate]![frmsubMonth].Form!("subFrom" & intloop & "").visible = False

/gustav


>>> dkalsow at yahoo.com 20-05-2010 18:39 >>>
I know that me is refering to the current form but I do not see a "me" in the statment I am using (Forms![frmDate]![frmsubMonth].Form!("subFrom" & intloop & "").visible = False).  Would you mind just give the the syntac that will work? :)
 
thanks!
 
Dale






More information about the AccessD mailing list