473,397 Members | 2,099 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,397 software developers and data experts.

Calculating 55th Bday from DOB over 1500records, exporting to new field

4
Hey guys,

New to the forums but ive hit a snag whilst updating a Access Database at work.

Currently trying to repair and maintain a database that has been built by 6 people all with even worse knowledge of access then me and its becoming a pain at least.

My boss has just said that she wants a new field that displays the date of the patients 55th Birthday.

Problem is there are 1500+ records on this database and ive had a play around but couldnt find out how to do what i wanted to do, so i thought id come to the experts.

As i said i have 1500 patients on this database and i need to calculate their 55th birthday from their DOB

So i need to somehow:

Pull info from the fields in the DOB column
Add 55 to the year section in a dd/mm/yyyy format
and output it to the 55 Birthday column.

I want to be able to do this simultaneously across the 1500 patients, and then once thats done i want it to be on the database so when i enter a new patients DOB it automatically calculates their 55th birthday.

Hope this is clear enough, any help would be greatful. Im working on limited time due to incompetent manager expectations and i dont really want to spend the time going through 1500 records and calculating the 55th birthday manually.

Thanks in advance guys

- Nixeh
Aug 15 '06 #1
1 1559
comteck
179 100+
The day and month doesn't change from their DOB. Just add 55 to the year. You will have to add another field to your table to store the date (call it "55thBirthday". The best way to do this then is to create an UPDATE query, and have the calulated control in the query. Then when you run the query, it will update the table with the new dates. Drag down the 55thBirthday field into the query, and in the Update field, include the following (assuming "Birthdate" is the name of the field for the person's DOB):

DateAdd("yyyy",55,[BirthDate])

As well, you can create another calculated control (unbound) to display the person's current age, using the "DateDiff" function. Since this always displays the person's current age (as in today), this value is not stored in any table.

comteck
Aug 16 '06 #2

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

Similar topics

1
by: Jacky11 | last post by:
I have a column name the Data type is MEMO The input is more than thousands of characters. When exporting, not all the information is exported. Who can I correct this problem? Thanks
3
by: Fran Zablocki | last post by:
I have a process that exports an Access table to a comma-delimited text file. One of the fields that is exported shows the date it was exported, using the Date() function. In the Access table, the...
4
by: D | last post by:
I've created a report with many subreports of aggregate data. I want my client to be able to export this data to Excel to make her charts, etc. Only one problem: one of the fields is a "SchoolYear"...
0
by: Stephan Golux | last post by:
Hello. I am using an access 97 application that exports a report to RTF format, which is subsequently emailed to various people. The main informational field in the report is a free form memo...
2
by: Kenneth | last post by:
How do I remove the limitation in Access that deny me from exporting 24000 rows and 17 columns (in a query) into Excel? Kenneth
21
by: bobh | last post by:
Hi All, In Access97 I have a table that's greater than 65k records and I'm looking for a VBA way to export the records to Excel. Anyone have vba code to export from access to excel and have the...
10
by: Lisa | last post by:
In translating the formula for calculating lottery odds for various conditions into a Visual Basic Program, I have apparently missed something in that I get errors in the part of the calculation...
2
by: JimmyKoolPantz | last post by:
We purchased som software for encoding a barcode. We want to automate the process of converting a number to a readable barcode. However, I am having a few issues. The file that the barcode...
4
by: sumit kale | last post by:
Hi, Can somebody help me resolve my problem ? I am getting error when calculating total using unbound textfiled in subform. I have a main form called purchase_register_master and a subform...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.