We help IT Professionals succeed at work.
Get Started

Access save current record without moving to the next record

Lisa B
Lisa B asked
on
3,574 Views
Last Modified: 2020-04-13
Hi

I have two forms in my database.

frmStart after the user enters their name and call media they press the new call button. This code is executed with the new call button is pressed

DoCmd.OpenForm "frmMain", , , , acFormAdd
   
DoCmd.GoToRecord , , acNewRec

The second form then opens and the record source of this second form is tblcustomers.  On the form frmMain I have a textbox called IDNumber which is linked to the ID field of the table tblcustomers.  The user can press an abort button without entering any information into the form due to this I need a way of saving the current record without creating a new record as I would like to use the value IDNumber and store this in another table.

Basically IDNumber is not shown onscreen until I force access to save the record (using Me.Dirty = False in the onclick event of the abort button) - but using this code creates another record in the tblcustomers table.

Is there anyway of saving the current record without moving on to the next record?

Thanks
Comment
Watch Question
Jeffrey CoachmanMIS Liason
CERTIFIED EXPERT
Most Valuable Expert 2012
Commented:
This problem has been solved!
Unlock 5 Answers and 17 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE