Solved

Save record when user hits processing button ACCESS 2003

Posted on 2013-05-23
3
339 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 250 total points
ID: 39192536
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
ID: 39192540
In the Processing Button OnClick event procedure put the following code before any other code:

Docmd.runcommand accmdSaveRecord
0
 

Author Closing Comment

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

Sandra
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

821 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