PC Review


Reply
Thread Tools Rate Thread

Close record

 
 
=?Utf-8?B?ZmVtZnJvZw==?=
Guest
Posts: n/a
 
      6th Nov 2006
Hi,

I have a sub-form which allows a user to input any outstanding items. The
user clicks on a checkbox to indicate that the outstanding item is completed.

The sub-form is based on an "outstanding items" form. The form is continuous.

I would like a record to dissapear once the "completed" check box is
clicked. I'm assuming I will need to add a code into the checkboxes on-click
event. I just don't know what the code is.

Please help...
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      6th Nov 2006
How does the subform "know" what records to show now? I'll assume you have
a query that selects based on whether the checkbox field is unchecked (so
that it would only show the "outstanding" items).

If you requery the subform after each change to the checkbox control (I'd
probably use AfterUpdate), the list of "outstanding" items will only contain
those that have not yet been checked.

Try something like this -- in the AfterUpdate event of the checkbox, use:
Me.Requery

--
Regards

Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

Microsoft Registered Partner
https://partner.microsoft.com/


"femfrog" <(E-Mail Removed)> wrote in message
news:EF154550-B28E-4B3E-8FF2-(E-Mail Removed)...
> Hi,
>
> I have a sub-form which allows a user to input any outstanding items. The
> user clicks on a checkbox to indicate that the outstanding item is

completed.
>
> The sub-form is based on an "outstanding items" form. The form is

continuous.
>
> I would like a record to dissapear once the "completed" check box is
> clicked. I'm assuming I will need to add a code into the checkboxes

on-click
> event. I just don't know what the code is.
>
> Please help...


 
Reply With Quote
 
=?Utf-8?B?ZnJlYWthemV1ZA==?=
Guest
Posts: n/a
 
      6th Nov 2006
Hi,
it seems to me as if your subform is based on a table.
I would suggest you create a query on this same table...then within the
query grid add FALSE to the Yes/No boolean field criteria. Now this query
should only return all records which do NOT have a True value in the table
field.
Bind your subform to this query instead...now on some event you can just
requery the subform itself and it should just reflect the correct records.
HTH
Good luck
--
Oli-S
Admin Specialist & Computer Science Major @ UMD - Go Terps -
http://www.oli-s.de


"femfrog" wrote:

> Hi,
>
> I have a sub-form which allows a user to input any outstanding items. The
> user clicks on a checkbox to indicate that the outstanding item is completed.
>
> The sub-form is based on an "outstanding items" form. The form is continuous.
>
> I would like a record to dissapear once the "completed" check box is
> clicked. I'm assuming I will need to add a code into the checkboxes on-click
> event. I just don't know what the code is.
>
> Please help...

 
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
If I open a form, add a new record, close the form (without saving or changing records) will it still save the new record? Chris K Microsoft Access Form Coding 1 5th Sep 2010 01:25 AM
Go to next record or close Tara Microsoft Access Form Coding 0 22nd Sep 2009 08:06 PM
How do I close a record set that is not open? =?Utf-8?B?UGV0ZXIgSGliYnM=?= Microsoft Access 4 29th Oct 2006 07:55 PM
Close record and advance next record after day end =?Utf-8?B?S3lsZQ==?= Microsoft Access Forms 1 31st Oct 2005 01:15 PM
Delete Record On Close =?Utf-8?B?S2VpdGg=?= Microsoft Access Form Coding 2 22nd Jul 2005 05:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 PM.