new record on form open

  • Thread starter Thread starter seeker
  • Start date Start date
Set the Data Entry property to Yes.

Bear in mind that this will only allow entering new records, no viewing or
editing.
 
For the form's Load event, use code like:

Private Sub Form_Load()

DoCmd.GoToRecord, acActiveDataObject, Me.Name, acNewRecord

End Sub
 
This works great with Access 2003, but when I try it with Access 2007 it
gives me a VB error. I've tried several different metthods, each give me a
VB error.
 
What error(s) are you getting? (pretty hard to diagnose problems without
knowing...)
 
Douglas J. Steele said:
What error(s) are you getting? (pretty hard to
diagnose problems without knowing...)

What's the matter, Doug, did you let your membership to "Access Psychics"
lapse? <GRIN>

Larry
 
Larry Linson said:
What's the matter, Doug, did you let your membership to "Access Psychics"
lapse? <GRIN>

I had to make a decision. I couldn't handle being in both "Access Psychics"
and "Access Psychos". <g>
 
I had to make a decision. I couldn't handle being in both "Access Psychics"
and "Access Psychos". <g>

Oh no... we've gone on from being junkies to being psychos!

We're up to six or eight Normal Forms - do we need a twelve-step program
instead?
 
Visual Basic Run-Time Error--you can't go to the specified record.

I changed the code to:

Private Sub Form_Load()
DoCmd.GoToRecord , , acNewRec

End Sub

It works great with Access 2003, but I get the run time error with Access
2007.

I make fun of people when they come into my store and expect me to read
their mind....I now know how it happens. I'm glad to see everyone has a good
sense of humor, but are you still willing to help me.

Thanks.
Chad
 
Back
Top