I have looked everywhere and tried for several days and cannot get Access 2003 to do what I want. I have a form that has an auto number ID that is set to disabled. I have the Form's On Load event to set the record to always be a "new record". The first field on the form after the ID is called RequestedBy. I have the field set to where the background color is yellow when he field is "active". When the form is opened, I want the this field to be the first field the user enters. I want the cursor to be on this field and the background color to go from white to yellow so the user knows they are on this field without them having to click anything.
I have tried using the DoCmd.GoToRecord in the Forms Events - On Load, On Current, After Layout and After Render to no Success. I have also tried different events under the ID field to no success. I have tried using the GetFocus command to no success.
Could someone please tell me the "secret" to making this work? I am relatively new to Access so I need to know what the exact code is and what "event" I need to put it into. Thank you for your assistance.
Here's an example for a TextBox named "Text_Town":
Private Sub Form_Current()
Private Sub Text_Town_GotFocus()
Me.Text_Town.BackColor = vbYellow
Private Sub Text_Town_LostFocus()
Me.Text_Town.BackColor = vbWhite
Chalk it up to me having a splitting migraine last night. I had a typo in my code that was causing it not to see the correct variable. Changed it this morning and it is working like I want it to. Thank you for your help and now on to my next issue (which is posted in another thread).