Mimic built-in 'New Record' Button (1 Viewer)

jjturner

Registered User.
Local time
Today, 06:59
Joined
Sep 1, 2002
Messages
386
Hello,

Using Access 97, I've replaced the built-in navigation buttons with my own, but I can't figure out how to mimic the recordset behavior of the NEW button. Essentially, I don't want the form to filter when the user clicks my NEW button, which it does currently and is the difference between my NEW and the built-in NEW.

It's probably s.t. simple I'm missing, but any help would be most appreciated.

Thanks,
John
 

jjturner

Registered User.
Local time
Today, 06:59
Joined
Sep 1, 2002
Messages
386
That's what I'm using, but that filters the underlying recordset so that I can't move Previous or First . . .
 

ddmcn

Registered User.
Local time
Today, 01:59
Joined
Sep 12, 2002
Messages
73
Wizards

John,

I know this flies in the face of logic...but do you use the wizards to build your forms? You can add a button with the toolbox and when the wizard comes up choose record operations. The first option there is Add New Record...

that should work.

:)
 

ghudson

Registered User.
Local time
Today, 01:59
Joined
Jun 8, 2002
Messages
6,194
Why don't you turn the filtering off?

Me.FilterOn = False
DoCmd.GoToRecord , , acNewRec

HTH
 

jjturner

Registered User.
Local time
Today, 06:59
Joined
Sep 1, 2002
Messages
386
ghudson -

That's it! I hadn't used the FilterOn property before, I guess that would be too obvious for me!

Many Thanks,
Joh
 

Users who are viewing this thread

Top Bottom