PC Review


Reply
Thread Tools Rate Thread

Automatically check a box on a form using code

 
 
mattieflo
Guest
Posts: n/a
 
      21st Aug 2008
Hello,

I have a mainform Emails that contains a subform, POs. The PO subform is a
continous form which has a field called Date Completed. An email can contain
many POs. On the mainform, there is a checkbox that is labeled 'Completed'.
What I need is when all the completed dates on the subform is populated, the
main form checkbox gets checked....I'm trying to do this from the on current
event from the subform, but does anyone have a suggestion on how I should
program this? Thanks!
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      22nd Aug 2008
Hi,
I think you need to use AfterUpdate event of subform, so only when record
was edited - then you recalcualte the value of checkbox

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com

"mattieflo" <(E-Mail Removed)> wrote in message
news:AA8D0B9E-FCB7-4A8E-9D2A-(E-Mail Removed)...
> Hello,
>
> I have a mainform Emails that contains a subform, POs. The PO subform is a
> continous form which has a field called Date Completed. An email can
> contain
> many POs. On the mainform, there is a checkbox that is labeled
> 'Completed'.
> What I need is when all the completed dates on the subform is populated,
> the
> main form checkbox gets checked....I'm trying to do this from the on
> current
> event from the subform, but does anyone have a suggestion on how I should
> program this? Thanks!


 
Reply With Quote
 
Tom van Stiphout
Guest
Posts: n/a
 
      22nd Aug 2008
On Thu, 21 Aug 2008 11:42:02 -0700, mattieflo
<(E-Mail Removed)> wrote:

You should not have a field in the Emails table to store Completed,
because it is a calculated value. I.e. it can be calculated by
inspecting the child records.

-Tom.
Microsoft Access MVP



>Hello,
>
>I have a mainform Emails that contains a subform, POs. The PO subform is a
>continous form which has a field called Date Completed. An email can contain
>many POs. On the mainform, there is a checkbox that is labeled 'Completed'.
>What I need is when all the completed dates on the subform is populated, the
>main form checkbox gets checked....I'm trying to do this from the on current
>event from the subform, but does anyone have a suggestion on how I should
>program this? Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code for the Check Boxes in a form HKS Microsoft Excel Misc 3 24th Jun 2008 09:42 PM
Clear check boxes on an Access Form automatically. geo Microsoft Access Forms 2 16th Jun 2008 03:41 PM
Automatically spell check a form =?Utf-8?B?T2xzemFuc2tpQQ==?= Microsoft Access VBA Modules 1 8th Aug 2005 06:28 PM
form field -- can I spell check automatically? =?Utf-8?B?SmFuZXQ=?= Microsoft Word Document Management 1 4th Nov 2004 06:27 PM
How to get a usercontrol to automatically add code to the initialization code in a form... Simon Verona Microsoft VB .NET 21 30th Jun 2004 05:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:05 AM.