473,748 Members | 10,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Copy record (History) from one Admission to the other

12 New Member
I have a History table which is connected to the Admission table and the Admission table is connected to the Patient Information table. You can have multiple Admissions for one patient. I want to be able to copy the record in the History table to the next admission. Since the History of the Patient doesn't change much from one admission to the other. I want each Admission ID to have a different History ID.
Hope that makes sense .
Thank you.
Nov 30 '09 #1
23 2212
ChipR
1,287 Recognized Expert Top Contributor
Sure, that makes sense. You're going to have to ask a question if we're to help, rather than stating what you want.
Nov 30 '09 #2
swali
12 New Member
How can I copy records from the history form, because some of the history information stays the same, and show them in the next Admission? But records should not be overwritten. Each record need to have its own HistoyID and AdmissionID.
Thank you.
Nov 30 '09 #3
ChipR
1,287 Recognized Expert Top Contributor
Do you want to copy records from the history form to another form, or to the same form, or a subform? Or from a table?
What form are you entering the records on? Is it bound to a table?
Do you know any VBA?
Would you like to give us any other information that might make it possible to help you?
Nov 30 '09 #4
missinglinq
3,532 Recognized Expert Specialist
I assume you have an admission date field, as well as admission ID, history ID, and history fields. You must also have a field that uniquely identifies each patient..

What are the names of each of these fields, and what are the datatype (Text or Number) of the admission and history IDs?

What is the name of the table holding these fields?

Welcome to Bytes!

Linq ;0)>
Nov 30 '09 #5
swali
12 New Member
First time writing on a forum so didn't know what or how to ask
I do know some VB
The frmHistory is a Subform and is linked by an Account_No.
Account_No is an ID in the frmAdmission, its an Alphanumeric key and has a foreign key from the frmPatientInfo.
tblPatient: PatientID (Numeric)
tblAdmission: AdmissionID (Alphanumeric) , PatientID(Forei gnKey)
tblHistory: HistoryID(AutoN umber) , AdmissionID(For eignKey)
I have it to where when you click on the History button it opens the History form and is filtered to show only the record related to AdmissionID
You can have multiple Admission for one Patient
Ex: A patient comes in and this is their 2nd Admission How can I display the information from the 1st AdmissionHistor y to show up in the 2nd AdmissionHistor y? So the person entering the information can save some time.
I am using Access 2007
Thanks again
Hope I was clear this time
Please let me know if there is anything else you guys need to know
Dec 1 '09 #6
NeoPa
32,570 Recognized Expert Moderator MVP
Are you still requiring help on this Swali?
Jan 3 '10 #7
swali
12 New Member
@NeoPa
Thank you for replying to my post
I did figure out how to copy records from one form to the other by saving it as Public intCopyField As String
and then on the cmd button click on the first form
intCopyField = Me.Text0
and then on the load event on the second form
Me.Text1 = intCopyField
if there is a better way please let me know
Thanks Again
and Happy New Year!
Jan 4 '10 #8
swali
12 New Member
Actually I started working on a different project and thought that they both had similar issues and just went back to this one and read my old post and realized its not the same.
And since it was something that was "desirable" by the user and not "mandatory" I finished the project without it.
I would love to implement this feature if you can help me.
Please let me know if you need any more information other than what I posted 4 week ago.
Thank you.
Jan 4 '10 #9
NeoPa
32,570 Recognized Expert Moderator MVP
When I get some time (hopefully this evening) I'll read through what you've said again and see if I can make sense of it. If I can I'll see what I can suggest. Otherwise I'll explain what I need you to communicate more clearly and we can proceed from there.
Jan 4 '10 #10

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

Similar topics

1
1838
by: middletree | last post by:
I have a table which has a datetime field for when a row in this one table (Ticket) was created. This is for trouble tickets for a help desk. After a ticket has been created, any additions to that ticket are recorded in another table called History. There could be several additions, thus the splitting up into a one-to-many relationship. In order to meet the boss's request, I recently added a LastModified field to the Ticket table. I...
0
1613
by: MARK | last post by:
Hi, I have found to my distress that my newly created printer consumables database is overwriting exisitng records when i search my printer history form. Basic i have a form that have a combo box selects a printer record. The 'task' history of the printer record is then displayed in the subform ' printer history sub'.
5
4334
by: Ilan Sebba | last post by:
When it comes to adding records in related tables, Access is really smart. But when I try to do the same using ADO, I am really stupid. Say I have two parent tables (eg Course, Student) and one child table (StudentProgress). The course progress records how a student progresses on a course. I have one course (History) and one student called Maya. I now want to record her grade (64). If I do this in Access using a form, then the form...
1
1584
by: Gomez | last post by:
I have set up two tables ****current and ****history. The history table contains all the fields which I want to track changes on. The current table contains just the most recent information from those fields (history not important). The entry forms are set up with a query to access each field from it's correct table. I have a 2 field primary key in the history table (field 1 is a facility ID, and field 2 is the date of inspection). ...
19
3478
by: davidgordon | last post by:
Hi, I need some pointers/help on how to do the following if it possible: In my access db, I have the following: Tables: Products, Sub-Assembly, Product-Pack Table, Products
19
2145
by: MaXX | last post by:
Hi, I hope I'm not OT. I have the following issue: I want to delete a record from my db with a php script. Let's say I'm auth'd and I want to delete the record id 440. With a simple form (get or post), I send the id to my script and delete the record (DELETE FROM table WHERE id=some_validated_input). The problem is if I'm a nasty guy I just write my own form and delete any
6
2746
by: AA Arens | last post by:
Hi, I have a database with 2 main forms. Contacts and companies. I share the base with two others via LAN. On the companies form I have buttons to navigate throught the records (>400). We are mostly handling let say 5 companies. Every time I have to navigate or choose the find record button to get the right company. I am looking fo a feature to have listed in a combo list the last 5 visited records ("recently visited records").
0
1247
by: bloukopkoggelmander | last post by:
Hi All wonderfull brains! Right I have two questions after my last very successfull thread. I have tried looking these up on the net, but no luck. Scenario 1 is : I have a bound form with bound controls. For one of the controls I look up the values from a table, but the values I then sleect from this combo box, is concatednated, ie. Lastname,Firstname,Employee number. Now what I want is that once the user has selected a concatenated name...
0
2043
by: emalcolm_FLA | last post by:
Hello and TIA for any help with this non profit Christmas assistance project. I have an applicant (app history) and child (child history) tables (4 total). I need to grab the next available (in house case number, appt date and time) for the applicants yearly history and the childs yearly history and then print a report with the applicants info and this in house case number. The forms are linked with ID_app (from the applicant table).
0
8984
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8823
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9530
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9363
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9312
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9238
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6073
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2206
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.