Connecting Tech Pros Worldwide Forums | Help | Site Map

Make command button show new record

Newbie
 
Join Date: Feb 2007
Posts: 29
#1: Feb 27 '07
I have a form that is linked up to the tables. I turned off the Navigation buttons. I put in a new command button that when clicked, it opens up a new record. What is the code that is needed for this to happen?

Rabbit's Avatar
Expert
 
Join Date: Jan 2007
Location: California
Posts: 3,835
#2: Feb 27 '07

re: Make command button show new record


DoCmd.GoToRecord , , acNewRec
Newbie
 
Join Date: Feb 2007
Posts: 29
#3: Feb 28 '07

re: Make command button show new record


Now how do you turn off the scroll on your mouse. Everytime I scroll my mouse, it switches to a previous or next or new record. I only want to switch between records by the buttons.
Rabbit's Avatar
Expert
 
Join Date: Jan 2007
Location: California
Posts: 3,835
#4: Feb 28 '07

re: Make command button show new record


There's only a poor substitute for this. I don't know of a way to turn it off completely.
Reply


Similar Microsoft Access / VBA bytes