Fred Hooper
fahooper at trapo.com
Mon Jun 4 16:47:53 CDT 2007
frm.Controls("cboPerson").SetFocus -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 04, 2007 5:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Set Focus on Form from Standard Module Arrrgh! Syntax! I have a procedure, called by different forms as a validation check of sorts. Public Sub TEST(cboPerson as ComboBox, frm as Form) '-- if things aren't right frm.cboPerson.SetFocus End Sub But of course this doesn't work. What is the syntax? Am I passing the correct objects to the procedure? Thanks! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com