I'm trying to create a button on the start up form that allows the user to jump to a specific record on a certain form. I've found sloppy solutions, but I'd like the code on this one to look nice so I'm trying to figure out the correct way to go about doing this. My most recent attempt consists of a button on the start up page that opens up a form called frmFind, and a form called frmBody. On frmFind, there is a text box and a button. The text box sets the value to a global variable, and then searches for the first instance of that value, a string, in frmBody, and opens that record. (any of this making sense so far? I'm terrible at trying to explain my coding) My code for the button is as follows:
1 Screen.PreviousControl.SetFocus
2 gSearch = txtTitle.Text
3 Forms!frmBody!txtTitle.SetFocus
4 DoCmd.FindRecord gSearch, , , , , acAll
Line 1 to send focus back to the text box so line 2 will work, line 3 to switch focus to frmBody, the form I want the record to open up in, and line 4 the actual FindRecord action. The error message I keep getting is : "A macro set to one of the current field's properties failed because of an error in a FindRecord action argument." Any help would be appreciated, especially if I'm going about this all wrong

If there's a better approach to take, I'm open to them, but I'd like it to be extremely simple (for the end user) and I'd rather not use the built in find function. Thanks.