Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / July 2007

Tip: Looking for answers? Try searching our database.

Can Form Show Only Populated Fields?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
AEWatkins - 02 Jul 2007 14:59 GMT
I've created a contracts database that allows users to insert a copy of their
contract as an OLE object.  Some contracts have up to 10 amendments, so I've
created additional fields for each amendment.  

Does anyone know how I can:

1.  Have the form show only those fields that are populated?  I don't want
all ten amendment fields showing if there's only one amendment.

2.  Give users a way to identify the object they're inserting?  I'm thinking
some kind of box might be necessary that says "What kind of object do you
want to insert?"  Then the user chooses: Contract, Contract Request Form,
First Amendment, Second Amendment, etc. and inserts the form.  The problem is
that I don't know how to do this.  Or maybe there's a better way?

Thanks in advance for your advice.

AEWatkins
New Jersey
Douglas J. Steele - 02 Jul 2007 15:50 GMT
Sorry, but your first mistake was in adding 10 additional fields for the
amendments. That's called a "repeating group", and is a violation of
database normalization principles.

Rather than 10 fields for the 10 amendments (and what are you going to do
when there's an 11th amendment?), you should have a second table, linked to
the first one, that has a row for each amendment. You'd display the
amendments in a subform on your original form.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

> I've created a contracts database that allows users to insert a copy of
> their
[quoted text clipped - 19 lines]
> AEWatkins
> New Jersey
AEWatkins - 02 Jul 2007 16:15 GMT
Thank you.  I knew there was a better way and you smart people would share it
with me!  

I'll give it a try, but I'm relatively new at this and may have a few
additional questions.

>Sorry, but your first mistake was in adding 10 additional fields for the
>amendments. That's called a "repeating group", and is a violation of
[quoted text clipped - 10 lines]
>> AEWatkins
>> New Jersey
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.