A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Continuing plaintive pleas for help from Jeff Boyce & John Vinson



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old December 27th, 2006, 05:16 PM posted to microsoft.public.access.tablesdbdesign
John Vinson
external usenet poster
 
Posts: 4,033
Default Continuing plaintive pleas for help from Jeff Boyce & John Vin

On Wed, 27 Dec 2006 05:56:00 -0800, NC_Sue
wrote:

OK - so I've normalized the tables & the form with master from tblPatients &
child from tblPatientProtocolActivity works fine, but I still find entering
new patients awkward. I can enter a new patient into the form, but am unable
to enter the protocol he belongs to (get a message telling me that there is
no corresponding record in tblPatientProtocolActivity), and am unable to exit
the form (as the full record couldn't be entered) without going to
tblPatientProtocolActivity & completing the entry there, i.e. selecting the
protocol for the patient.

Is there a way to make this less cumbersome? It's still TONS better than my
original database (where I would enter a patient multiple times in
tblPatient, once for each time he was screened for or enrolled in a protocol).


I presume that tblPatientProtocolActivity contains a ProtocolID field?
Does your Subform have a control bound to that field? The simplest
solution would be to use a Combo box based on the Protocol table,
bound to the ProtocolID field on the subform.

You do not need to display the Patient name on the subform (it's
already visible right in front of you on the mainform; just trust the
subform Master/Child to fill it in); but you should be able to select
the protocol right there on the subform. You should NEVER need to open
*ANY* of your tables to edit data, much less look up cryptic ID's and
type them in. Let the computer do that mindless work, that's what it's
good at!

You may want to look at some other working Access applications to see
how forms and subforms work. Clear your mind a bit of the problems
with your own database and take a look at (say) the Northwind sample
database. It lets the user enter new Customers (think patients), Items
(think protocols), Orders (think protocol activity) - without ever
opening the table.

John W. Vinson[MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.