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

Data Entry In Normalized Database

I am designing a database which needs approximately 50 fields per
record. The database user requires data entry to be via a single
screen.

If I follow good database design practice and split the 50 fields into
several smaller tables, is there any other way to enter the data on the
single data entry screen other than having several subforms with the
individual tables as their recordsource?

Nov 13 '05 #1
6 2956
Wayne wrote:
I am designing a database which needs approximately 50 fields per
record. The database user requires data entry to be via a single
screen.

If I follow good database design practice and split the 50 fields into
several smaller tables, is there any other way to enter the data on the
single data entry screen other than having several subforms with the
individual tables as their recordsource?

Yes. In a form you can enter a RecordSource (select statement or query
or table) that the form is bound to or leave the Recordsource blank
(unbound form).

Is there anything wrong with 50 fields in a record? Why do you feel you
need to break the record up? Usually subforms are for 1-many
relationships. Ex: you have an order but an order has 1 or many items.
If this is the case. Create a form for the order and a form for the
subform. When you drop the subform into the main form, set a link
between the orderid.
Nov 13 '05 #2
Thanks for the reply. You are right - after looking at it I probably
don't need to break the record up, except for one field where I need to
add several witnesses per record. I've added a subform for witnesses
to the main data entry form but have come up against a problem.

To stop the user leaving any fields blank, I have set the "required
property" to "yes" for all fields in the underlying data table for the
main form. The witnesses subform data needs to be added in the middle
of the data entry flow and as soon as the main form losses focus I get
the error telling me that such and such a field (on the main form)
can't contain a null value ......

I know that this is to be expected because I'm trying to leave the main
form with out completing all of the mandatory data. Is there a simple
way around this?

Nov 13 '05 #3

"Wayne" <cq*******@volcanomail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Thanks for the reply. You are right - after looking at it I probably
don't need to break the record up, except for one field where I need to
add several witnesses per record. I've added a subform for witnesses
to the main data entry form but have come up against a problem.

To stop the user leaving any fields blank, I have set the "required
property" to "yes" for all fields in the underlying data table for the
main form. The witnesses subform data needs to be added in the middle
of the data entry flow and as soon as the main form losses focus I get
the error telling me that such and such a field (on the main form)
can't contain a null value ......

I know that this is to be expected because I'm trying to leave the main
form with out completing all of the mandatory data. Is there a simple
way around this?


If witnesses is a single field, try using inputbox() to allow the user to
input the data, then user docmd.runsql to write it into the witness table.

If you need more fields, create a form with those fields and open it as a
dialog box for user input.

Possessing stops on the current form whenever a dialog box is open.
Nov 13 '05 #4
Wayne,
If you use a query to present all fifty fields and some of the fields
represent 1-M relationships then rows from the one side of the relationship
will repeat for every row on the many side of the relationship. This may be
interpreted as duplicate information by your users. Form/Subform is an
elegant way to present 1-M related data and you should think about using it.
If you play with the look (formatting) of the nested subforms it is possible
to make it seem like it is all one form for the user. It's not necessary to
tell the user that you pulled off a bit of slight of hand to make this
happen. Just build it and present it as their single form. If all goes
well you get your "atta boy"s and "job well done"s. Last, think about how
you are going to print out the data for these fifty fields and whether your
current set of tables is the best arrangement for printing or reporting the
data that is captured.

--
Alan Webb
kn*******@SPAMhotmail.com
"It's not IT, it's IS"

"Wayne" <cq*******@volcanomail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I am designing a database which needs approximately 50 fields per
record. The database user requires data entry to be via a single
screen.

If I follow good database design practice and split the 50 fields into
several smaller tables, is there any other way to enter the data on the
single data entry screen other than having several subforms with the
individual tables as their recordsource?

Nov 13 '05 #5
Wayne wrote:
Thanks for the reply. You are right - after looking at it I probably
don't need to break the record up, except for one field where I need to
add several witnesses per record. I've added a subform for witnesses
to the main data entry form but have come up against a problem.

To stop the user leaving any fields blank, I have set the "required
property" to "yes" for all fields in the underlying data table for the
main form. The witnesses subform data needs to be added in the middle
of the data entry flow and as soon as the main form losses focus I get
the error telling me that such and such a field (on the main form)
can't contain a null value ......

I know that this is to be expected because I'm trying to leave the main
form with out completing all of the mandatory data. Is there a simple
way around this?

Well...you could create an unbound form instead of a bound form. A
bound form has a recordsource, the unbound does not. You would need to
have a way to save and insert the data into a table via a command button
to save or undo. If you undo, you'd need to delete any subform
"witness" records.

There is no easy way that I see where you can start entering data on the
main record then go to the many records subform without calling the
BeforeUpdate event of the Main form and saving/canceling the record.

Check out unbound forms. It's about the best advice I can provide. It
will require work on your part, but you can do it if you have the patience.
Nov 13 '05 #6
Thanks for the feedback and help. I will try these ideas and see how I
go.

Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Leif K-Brooks | last post by:
I'm writing a relatively simple multi-user public Web application with Python. It's a rewrite of a similar application which used PHP+MySQL (not particularly clean code, either). My opinions on...
10
by: heromull | last post by:
We have an asp.net app with about 200 data entry forms. Customers may enter data into any number of forms. Each form's data is persisted in a corresponding sql table. When data entry is...
2
by: Mike | last post by:
Hi I have been tasked with converting my pulp and paper mills weekly projected and actual contractor hrs excel spreadsheet into a an Access 97 database. So far my design has been to use a...
4
by: sheree | last post by:
I have 3 tables (amoung a few others) in a small access database. The tables are as follows: == AEReport -------- AEID (PK) RptCatelog GCRCID PatientID EvntDate
4
by: Maria | last post by:
One of my duties is to record student grades each report period(6). The tables in the database basically look like: TblStudent StudentID Name etc TblStudentGrade StudentGradeID GradePeriod
13
by: Arno R | last post by:
Hi all, I will have to handle a lot of really 'nice' data in a LOT of Excel sheets. It is all about music files (Billboard top 100) I am afraid there really is a sheet for every year ... (Don't...
3
by: Scottie_do | last post by:
I have a 20meg in-memory stack-based array and I'd like to normalise in the client's memory... then add foriegn keys, and display results on a datagrid. I discovered that converting the stack to a...
13
by: WardC | last post by:
I'm a FileMaker user trying to help a client with an Access data entry problem: When text is copied from another application and pasted into an Access form, the pasted text sometimes includes...
20
by: hippomedon | last post by:
Hello everyone, I'm looking for some advice on whether I should break the normalization rule. Normally, I would not consider it, but this seems to be a special case. I have created 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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
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,...

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.