PDA

View Full Version : Variable scope



ProteanBeing
02-14-2008, 08:08 AM
I have a value in a userform (say UF1). UF1 has a button that calls another userform (UF2). I for UF2 to know the selected customer from UF1. How would I do this?

Bob Phillips
02-14-2008, 08:39 AM
Pass it via a public variable declared in a standard code module.

ProteanBeing
02-14-2008, 08:51 AM
:doh: sometimes it's me who's the idiot.