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

Command to add a record into a table based on the data entry in another

I am designing a database to capture a medical audit. There are more than 255 items per patient encounter, so I had to create more than one table, with the patient's encounter # as the unique identifier across all tables, at a one-to-one relationship. I created a navigation form with all the forms. Unfortunately, when I move from form to form, it doesn't stick to the same patient encounter. So what is the simplest way that when I start capturing information the patient's encounter on the first form, how do I automatically create the "record" in EACH table and prepopulate the patient's encounter # on each form ? (I understand folks' opinion that more than 255 items is too many items to collect, but that is the reality).
Mar 7 '17 #1
3 865
PhilOfWalton
1,430 Expert 1GB
If I understand you correctly, the usual method of designing a database like this is to have one table for the FIXED details of a patient (Name, Address, Date of Births, Gender etc) and a second table listing all the visits, with the PatientID as the Foreign Key

The main form shows the Patient's main details, and a continuous subform shows all the visits with information like VisitDate, Reason, prescription etc.

There are no limits to the number of visits per patient.

Phil
Mar 8 '17 #2
Each visit has more than 255 items so more than what can be contained within one table or within one subform. Also for each visit there can be more than one service and for that service more than 255 data elements may be collected.
Mar 28 '17 #3
PhilOfWalton
1,430 Expert 1GB
I think a concrete example might help. Examples of what you mean by a service and what you mean by a data element.

Phil
Mar 28 '17 #4

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

Similar topics

1
by: Bo Long | last post by:
I believe the following a valid SQL statement, but MS Access returns with an error "Operation must be an updateable query". Any suggestions would be greatly appreciated! UPDATE FERCPTILoad AS...
3
by: wayneray | last post by:
Looking for a start on how to accomplish my goal of enhancing our current database. We currently take in data then call that data to web pages to view details using PHP. Since the data is from...
2
by: obs | last post by:
Hi all. I have two tables: Pages consists of an id field: PageId, and some other fields NewsTemplate consists of another id field: PageId , and some other fields I want to update PageId in...
5
by: new2sql | last post by:
Firstly, thanks in advance for any assistance, it is much appriciated. I have two tables, structure as follows: TBL_FANS Column | Example --------------------------------------...
2
by: toofunny24 | last post by:
I have two tables and both have identical fields for the most part. Both tables are linked by product id. One table is used for entering actual data. Table two contains the specs/target numbers...
1
by: AlisonP | last post by:
Hi, I am a relatively new Access programmer, but have programmed computers in Fortran and done complex modeling for years. Am learning quickly, and have managed to figure everything out so far, but...
8
by: Sandra Walsh | last post by:
Hello - I have a local table in my database called t_CompanyData that holds a subset of the fields in another table called dbo_INT_AUX_LISTING. dbo_INT_AUX_LISTING is a linked table via an...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.