Limit form to existing records

GuillaumeJ

New Member
Joined
Mar 10, 2004
Messages
27
Hi everyone

Here is my problem

I have a table containing records. I created a form that displays the records' details. To navigate through the records, I added two buttons "previous record" and "next record" (using GoToRecord method)

When the last existing record in the table is displayed, and the user pushes the button "next record" once again, the form gets blank and adds automatically a new record to the table.

How can I limit the navigation on the form to only existing records, without giving the possibility to create a new record in the table ?

Any help would be great !

Thanks a lot

Guillaume
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi
set the form property 'AllowAdditions' to No
That will do the trick

HTH
Jim
 
Upvote 0

Forum statistics

Threads
1,221,816
Messages
6,162,149
Members
451,746
Latest member
samwalrus

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top