View Full Version : CLICKER


danaleblanc
06-18-2001, 11:44 AM
I want clicker to appear in anther field after I click 'Add new record'

charityg
06-18-2001, 11:50 AM
http://www.access-programmers.co.uk/ubb/smile.gif

I'm assuming that you want to move the focus do a different field after you click the add new button.

In the OnClick event of the cmdAddNew

fldName.setfocus

danaleblanc
06-18-2001, 01:05 PM
It does not work. Here is the code I typed
PO Number.setfocus in the On Click event

charityg
06-18-2001, 01:23 PM
It does work if you use the right naming conventions. If a field name contains a space, you must be sure to enclose the name in brackets.

[PO Number].SetFocus

danaleblanc
06-18-2001, 02:35 PM
I did just like you said and it still don't work. I wrote over the word [Event Procedure] I am sorry, I hope I am not testing your patience.

charityg
06-18-2001, 05:31 PM
I'm sorry. I was assuming that you were familiar with coding procedures.

When you look at the property window for the AddNew command button (you did create a command button to add a new record?) and click on the line for the click event, click the ellipsis (...) to the right of the entry line, and select code builder. Enter the code between the lines so it looks something like this

private sub command_onClick

[PO Number].SetFocus

end sub

danaleblanc
06-19-2001, 11:55 AM
It worked - thank you