473,487 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

save the date a Y/N box changed

5 New Member
hey everyone,

I'm a moderate user of Access but I'm trying to iron out a problem.
I have several Y/N boxes for various status I'm trying to track. For each Y/N box I also have a date field inteded to capture today's date as the day the the Y/N box was last updated. The only problem is I do not know how to do this.

This is a church database.
The main form is called "Family Detail".
This form has a subform called "Family Members".
Family Members has several fields but two of which are:
a Y/N box called "Converted".
and a date field called "Converted Date"

P.S. I do need the seperate fields because there is a sizable proportion of the congregation that was saved before they kept good records so the check box will cover everyone and the Date field will be for going forward and those who remember.

I am trying to set it so when a user clicks on the "Converted" Y/N field, that field is checked, and the "Converted Date" field is filled in with today's date.

Your help would be appreciated.
Sep 27 '07 #1
1 1596
ADezii
8,834 Recognized Expert Expert
hey everyone,

I'm a moderate user of Access but I'm trying to iron out a problem.
I have several Y/N boxes for various status I'm trying to track. For each Y/N box I also have a date field inteded to capture today's date as the day the the Y/N box was last updated. The only problem is I do not know how to do this.

This is a church database.
The main form is called "Family Detail".
This form has a subform called "Family Members".
Family Members has several fields but two of which are:
a Y/N box called "Converted".
and a date field called "Converted Date"

P.S. I do need the seperate fields because there is a sizable proportion of the congregation that was saved before they kept good records so the check box will cover everyone and the Date field will be for going forward and those who remember.

I am trying to set it so when a user clicks on the "Converted" Y/N field, that field is checked, and the "Converted Date" field is filled in with today's date.

Your help would be appreciated.
Assuming your Converted Check Box is named chkConverted, and your Converted Date Field is named txtConvertedDate, then in the AfterUpdate() Event of the Converted Check Box, (chkConverted), copy and paste the following code:
Expand|Select|Wrap|Line Numbers
  1. If Me![chkConverted] Then
  2.   Me![txtConvertedDate] = Date
  3. Else
  4.   Me![txtConvertedDate] = Null
  5. End If
Sep 28 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2061
by: Sandy | last post by:
I am not sure how this even changed but... Until just recently when I went into any database and listed stored procedures I could list by the date which was in the format: mm/dd/yyyy. This...
7
3676
by: joseph.inglis | last post by:
I have a web browser object on a form which I have set to edit mode and use the UCOMIConnectionPointContainer interface to hook in and catch events. All working sweetly. Except there...
1
2816
by: TN Bella | last post by:
Hello, I was looking through the older posts for a solution to this problem, but I am still confused on how to fix my problem. There are two dates on my form, one (txtInvDate) is entered by the...
0
1451
by: sara | last post by:
I have a simple app, and I'm trying to add Orders. I have tblOrders and tblOrderDetails. First, the user selects the customer, then "orders", "new Order" The frmNewOrder simply assures the...
5
3043
by: Øyvind Isaksen | last post by:
I have a page with an optional integer-field, and one asp:calendar control. I use a stored procedure to save the data in SQL Server. When all fields contains data, the code works great! But if the...
5
8045
by: mbyrd1332 | last post by:
Just wondering if any of you knew of a way to trap the <!-- #BeginDate format:Am1 -->April 4, 2006<!-- #EndDate --> (Dreamweaver's Auto-Update-on-Save Date Code) into a PHP variable and still have...
0
2396
by: amrhi | last post by:
Hy Guys , Can anybody help me ? I try to make small web database in my unit. Some of fields have on change behaviour to get other data that automatically filled other text field. But when i try to...
1
15472
by: Shannon Richards | last post by:
Hello All: I have implemented a custom configuration section in my app.config file as follows: <configSections> <section name="AdminUIConfig" type="TestMgr.UIConfigSection,TestMgr"/>...
4
2967
by: Whasigga | last post by:
Hi I've created a form that has 7 subforms. It is the same subform, bound to a table, just repeated. This form represents a week, and each subform is used to enter in data for each day of the...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
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
7181
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...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.