Setting A Form Variable

detrie

Registered User.
Local time
Today, 05:17
Joined
Feb 9, 2006
Messages
113
I think this is a very basic question but am having trouble finding an answer.

I have Dev Ashish's Drag and Drop code running great.

He calls out frmDragDrop so as long as I have a form named frmDragDrop (with his events appropriately added) everything is fine.

However, I'd like to run this from many different forms so I think I want to assign a variable but I'm not sure if, where and how.

Code:
With Forms!frmDragDrop!lstDrop
            .RowSourceType = "Value List"
            .RowSource = strOut
            Forms!frmDragDrop.Caption = "DragDrop: " & _
                                                    .ListCount & _
                                                    " files dropped."
 

Users who are viewing this thread

Back
Top Bottom