Gustav Brock
Gustav at cactus.dk
Fri Sep 22 05:19:30 CDT 2006
Hi Martin It works here: Public Function SetTextbox(ByRef txt As TextBox) Debug.Print txt.Value txt.value = "33" Debug.Print txt.Value End Function Now, call it like this: ? SetTextbox(Forms.Item(0)!txtYourTextbox) /gustav >>> mwp.reid at qub.ac.uk 10-09-2006 21:50:00 >>> I need to pass a text control on a form to a procedure byval as opposed to byref as byref errors out. How can I pass this to the procedure byval? Martin Martin WP Reid Training and Assessment Unit Riddle Hall Belfast