in message:
Thank you. Please give more explicit instructions as I am a novice to
Access. "On the Current event of the form, test to see if you are on a new
record." Tell me how to do this.
1. Open the form in Design View
2. On the main menu bar go to View | Properties.
This will bring up the form's properties list.
(The dialog box should say "Form" in the upper left corner)
3. On the "All" or "Event" tabs look for an line that says
"On Current"
4. Single click on that line itself and a little arrow will appear at
the right side of this line along with a little button that has three
dots on it (...). Click that button with the three dots and a small
dialog prompt will appear. Select the option that says "Code
Builder" and click OK to go to the code window for this form.
5. Your cursor should be in between these two lines:
Private Sub Form_Current()
End Sub
6. Copy and paste this code *in between* those two lines:
If Me.NewRecord = True Then
Me.MyFirstControlNameHere.SetFocus
End If
7. Now where I have the long word MyFirstControlNameHere
you will need to *replace* that part with the actual name of the
form control you want the cursor to be on for a new record. So
if, for example your first form control is called FirstField change the
code to this:
If Me.NewRecord = True Then
Me.FirstField.SetFocus
End If
Follow me?
8. Compile the code (Debug | Compile from menu bar here)
9. Save and close the form and then test. That's it.
--
Jeff Conrad
Access Junkie
Bend, Oregon