Notices


Reply
 
LinkBack Thread Tools Display Modes

Old 08-10-2008, 09:48 PM   #1 (permalink)
ET - outta this world!

Elaine Tucker's Avatar

Join Date: May 2006
Location: Dallas, Texas
Posts: 689
Rep Power: 3 Elaine Tucker is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Education Edge (EE)

checkbox date field and autopopulate

I have a table in access with a yes/no check box named "Served" and a date field named "date Served" I'd like to autopopulate the date with "today" if the checkbox is clicked AND vice-versa -- auto populate the "served?" checkbox if a date is filled in the "date served" field.

I'm using a form for the data entry person to update information.

Thanks in advance
__________________
Elaine Tucker
Stewardship Coordinator
St. Mark's School of Texas
USA
www.smtexas.org

Last edited by Elaine Tucker; 08-10-2008 at 09:50 PM. Reason: correct filled to field
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-11-2008, 09:40 AM   #2 (permalink)
Member

Simon Stacey's Avatar

Join Date: Jun 2008
Location: London, UK
Posts: 67
Rep Power: 1 Simon Stacey is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

Quote:
Originally Posted by Elaine Tucker View Post
I have a table in access with a yes/no check box named "Served" and a date field named "date Served" I'd like to autopopulate the date with "today" if the checkbox is clicked AND vice-versa -- auto populate the "served?" checkbox if a date is filled in the "date served" field.
Hmm. The way I'd do it (which carries one of those hefty "this might not be the right way" disclaimers is ...

Set the OnUpdate property of the checkbox control to Event. Then double-click it to go to the Event Builder, which will bring up the relevant VB window.
if ChkBoxServed then DateServed=Date()
You can use the same function to blank the DateServed box if the checkbox is unchecked ...
if ChkBoxServed then DateServed=null
Then do something similar in the event for the DateServed box ...
if isNull(DateServed)=false then ChkBoxServed=True
I would be tempted to start messing around with making the DateServed field disabled/locked unless the ChkBoxServed is checked, thus preventing people putting a date in without checking the box. I'd probably also chuck in a bit to then move the focus to the date box when the box is checked, to ensure that people enter a date. And a check function when the record is saved that checks whether there's a value in the date field if the check field is true. But then, I tend to try to idiot-proof my data entry if anyone other than me is going to use it. And quite often if it's just me ...

(I might be slightly off in terms of syntax, but the help files should do it - I'm slightly rusty with my Access-poking skills.)
__________________
Simon Stacey
Database Officer
Centrepoint
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 08-11-2008, 02:02 PM   #3 (permalink)
ET - outta this world!

Elaine Tucker's Avatar

Join Date: May 2006
Location: Dallas, Texas
Posts: 689
Rep Power: 3 Elaine Tucker is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Education Edge (EE)

Simon,

Seems like that would work! I'll give it a test run...

Thanks!
__________________
Elaine Tucker
Stewardship Coordinator
St. Mark's School of Texas
USA
www.smtexas.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Forum Jump


Loans - Credit Counseling - Credit Card - Mortgage
All times are GMT -6. The time now is 02:34 AM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64