Button to add new record isn't working (Accesss 2013)

charlesstricklin

Board Regular
Joined
May 6, 2013
Messages
102
Office Version
  1. 365
  2. 2021
Platform
  1. MacOS
  2. Mobile
My Access chops are rusty, but I'm pretty certain I'm following instructions correctly, yet my Add Record command button fails to add a new record.


  1. I've created a command button in Design View.
  2. The Command Button Wizard comes up and I choose Add New Record from the Record Operations Category.
  3. I choose the Text option, provide the text for the button, and click Finish.
  4. I save the form.
  5. I Open the Form...
  6. Click the Add Record button and... nothing happens.

Where am I going wrong? Am I misunderstanding something? I'm using Microsoft Access 2013.
 
I did add this a moment ago, but it doesn't do anything:

Option Compare Database


Private Sub cmdAdd_Click()
DoCmd.GoToRecord , , acNewRec
End Sub
 
Upvote 0
Add new record on a form should only just bring up a form with blank fields that you can add a new record with, but wouldn't actually add a new record until you fill in the form fields. Is that what you mean by nothing happens - if so it's what is expected.
 
Upvote 0

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