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 / Database Design / December 2003

Tip: Looking for answers? Try searching our database.

Setting values in fields from other fields

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JC - 31 Dec 2003 14:46 GMT
Hi,

I want to concatenate several text fields together and
then assign the finshed value into another field.

I can create an expression to display what I want on a
form, but how do I then put this information into a field?

Thanks

JC.
Howard Brody - 31 Dec 2003 17:42 GMT
You can do it with an UpdateQuery but unless the other
fields are going to change, there's no need.  You can re-
concantonate in a query or report so why spend the system
resources to save a redundant field?

Howard Brody

>-----Original Message-----
>Hi,
[quoted text clipped - 9 lines]
>JC.
>.
John Vinson - 31 Dec 2003 18:19 GMT
>Hi,
>
[quoted text clipped - 3 lines]
>I can create an expression to display what I want on a
>form, but how do I then put this information into a field?

Well... DON'T.

Storing derived data such as this in your table accomplishes
three things: it wastes disk space; it wastes time (almost
any calculation will be MUCH faster than a disk fetch); and
most importantly, it risks data corruption. If one of the
underlying fields is subsequently edited, you will have data
in your table WHICH IS WRONG, and no automatic way to detect
that fact.

Just redo the calculation whenever you need it, either as a
calculated field in a Query or just as you're now doing it -
in the control source of a Form or a Report textbox.

If you're assuming that you need to concatenate these fields in order
to create a unique Primary Key, you should be aware that a Primary Key
can consist of up to TEN fields. Just ctrl-mouseclick the fields and
click the Key icon.

                 John W. Vinson[MVP]    
   Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
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



©2008 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.