I have an MDI child form which has a textbox. normally referenced using
frmR.txtMesgWindow.text = frmR.txtMesgWindow.text & Foo
where frmR is the variable referencing to the child form (frmMQ) in the MDI parent.
this child form picks up a message from MSMQ (should not affect anything) and passes it to a sub in a generic bas module, this sub then outputs the message to a textbox in either the originating MDI Child or to another MDI Child, depending on content.
however, using frmR.txtMesgWindow.text inside the bas module raises a variable not defined error. (frmR word is highlighted in debug mode!)
frmMQ.txtMesgWindow.text = frmMQ.txtMesgWindow.text & Foo causes a totally new form to appear, so thats not right, and is also not usable if i have multiple instances of frmMQ in the MDI application.
using "Public frmR as frmMQ" inside frmMain doesnt make a difference either.
thanks very much for assistance.