P pdbowling Registered User. Local time Today, 05:03 Joined Feb 14, 2003 Messages 179 Mar 24, 2003 #1 Hi everyone, I've got Dim Public varName as String in the declarations section of a form. How can I access this variable from the code in another form? varName crashes and shows as empty... Any clues? pb
Hi everyone, I've got Dim Public varName as String in the declarations section of a form. How can I access this variable from the code in another form? varName crashes and shows as empty... Any clues? pb
Travis Registered User. Local time Yesterday, 21:03 Joined Dec 17, 1999 Messages 1,332 Mar 24, 2003 #2 You have to reference the forms name and then the variable: Forms![YourFormName].VariableName
RichMorrison Registered User. Local time Yesterday, 23:03 Joined Apr 24, 2002 Messages 588 Mar 24, 2003 #3 Create a module and make "Property" procedures. Then you don't have to know or care about form names. (don't mean to insult any posters, but any other approach is dumb) RichM
Create a module and make "Property" procedures. Then you don't have to know or care about form names. (don't mean to insult any posters, but any other approach is dumb) RichM
P pdbowling Registered User. Local time Today, 05:03 Joined Feb 14, 2003 Messages 179 Mar 25, 2003 #4 Thank you Very helpful indeed. PB