Solved

Save record when user hits processing button ACCESS 2003

Posted on 2013-05-23
3
331 Views
Last Modified: 2013-05-23
I have checkboxes on a form that when checked, the record should be part of the processing.  However, if the user checks the box and then immediately hits the processing button, the record is not recognized as being checked, as though the information has not been saved.  So, if the user checks the box, but does not click on another field or place on the form to save the changes, how can I be sure the checked box is recorded when the user hits the processing button?  This is an ACCESS 2003 form.

Sandra
0
Comment
Question by:ssmith94015
3 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 250 total points
Comment Utility
try placing this line at the top of the Click event of the processing button

private sub btn_click()
me.dirty=false
0
 
LVL 12

Assisted Solution

by:pdebaets
pdebaets earned 250 total points
Comment Utility
In the Processing Button OnClick event procedure put the following code before any other code:

Docmd.runcommand accmdSaveRecord
0
 

Author Closing Comment

by:ssmith94015
Comment Utility
I don't know why, but actually a combination of both worked.  Thank you.

Sandra
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now