"I can't filed command 24 in the old database." Do you mean to say "I can't fine "command 24" in the old database."? You have to open up the form in design view and search for it in the new database where you place it in that form.
[Quoted Text] >Private Sub Form_Open(Cancel As Integer) > Me!BusinessDate.SetFocus > DoCmd.FindRecord Date > Me!PhoneDials.SetFocus >End Sub
"Date" is a reserved word in Access. Avoid using it to search for a date. If you have a control and you name it as "Date", change it immeditely to something like txtDate. Like "DoCmd.FindRecord txtDate"
Try the Dot instead of the Bang. like Me.BusinessDate.SetFocus and Me. PhoneDials.SetFocus.
-- Please Rate the posting if helps you
Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200811/1
|