473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

If me.dirty...

So I have a form showing my data items with a selection tick box to
indicate when an item is active.

I want to save the record automatically when someone clicks in the
tick box.

So I imagine this...

Sub Active_Dirty (Cancel as Integer)

Save current record...

End Sub

What command am i missing where it says Save current record... ?

Can anyone advise?

Cheers,

Rob.
Feb 28 '08 #1
3 11695
You are aware that if a record is Dirty then Access *will* save it unless you
take some extraordinary steps?

If Me.Dirty Then Me.Dirty = False
...will save the current record.

dkintheuk wrote:
>So I have a form showing my data items with a selection tick box to
indicate when an item is active.

I want to save the record automatically when someone clicks in the
tick box.

So I imagine this...

Sub Active_Dirty (Cancel as Integer)

Save current record...

End Sub

What command am i missing where it says Save current record... ?

Can anyone advise?

Cheers,

Rob.
--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200802/1

Feb 28 '08 #2
On 28 Feb, 17:37, "ruralguy via AccessMonster.com" <u12102@uwewrote:
You are aware that if a record is Dirty then Access *will* save it unless you
take some extraordinary steps?

If Me.Dirty Then Me.Dirty = False
..will save the current record.

dkintheuk wrote:
So I have a form showing my data items with a selection tick box to
indicate when an item is active.
I want to save the record automatically when someone clicks in the
tick box.
So I imagine this...
Sub Active_Dirty (Cancel as Integer)
*Save current record...
End Sub
What command am i missing where it says Save current record... ?
Can anyone advise?
Cheers,
Rob.

--
RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/2008...- Hide quoted text -

- Show quoted text -
Logical leap made... D'OH!

Ta.
Feb 28 '08 #3
Since the check box is to trigger this code, then you use the after update
event of the check box.

simply go:

me.refresh

or, better

if me.dirty = true then
me.Dirty = false
end if
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Feb 28 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: spamm | last post by:
I have this array with duplicate entries. Hundreds to be in fact. For example:Array = 17177 9661 9661 9535 9533 9533 9533 9533 9533 9533 9533 9533 9533 9533 9533 9533 9533 9533 9532 9532 9532...
6
by: Sean C. | last post by:
Helpful folks, I am having a hard time figuring out how to reduce my percentage of dirty page steal activity. Below are statistics for three fairly normal days, with the bufferpool hit ratios...
15
by: Rey | last post by:
Howdy all. Appreciate your help with several problems I'm having: I'm trying to determine if the Visit subform (subformVisits) has a new record or been changed, i.e. dirty. The form that...
3
by: Mark | last post by:
Is this the way to determine if a subform is dirty? If Me!SFrmEnterActivityList.Form.Dirty Then I use this statement in the Unload event of a form. When I click the Close button, the statement...
2
by: Salad | last post by:
A97. I have a command button to save and exit. I had the code If Me.Dirty Then Docmd.RunCommand acCmdSaveRecord ...more code endif I was getting an error because a value was not getting...
1
by: RC | last post by:
If I want to explicitly save the record before executing a Close action. Which of the following should I use? Or does it depend on whether it is based on a Form or something else? If Me.Dirty...
1
by: RIP662 | last post by:
Okay all you GURUS out there... here's the skinny... I need a way to prevent the Me.Dirty event to trigger after a FORM_OPEN event. What I have is a field that is dependent on another field that...
9
by: Susan Bricker | last post by:
I am currently using the OnDirty event of a Form to detect whether any fields have been modified. I set a boolean variable. Then, if the Close button is clicked before the Save button, I can put...
5
by: Alain Filiatrault | last post by:
Hi, I need to implement a "form.dirty" feature on a VB .NET form not related to a database. I need to know if any of the items (Textboxes, combo, listboxes, ...) was changed. Is there a quick...
5
by: Dan Iregren | last post by:
Hi, I need to know when a property has ben modified (IsDirty). The most obvious way to solve the problem is perhaps something like the following; Private m_sFirstName As String Private...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.