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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Same value written on all records automatically



 
 
Thread Tools Display Modes
  #1  
Old April 26th, 2010, 07:45 PM posted to microsoft.public.access.gettingstarted
Kim Wennerberg[_2_]
external usenet poster
 
Posts: 5
Default Same value written on all records automatically

In anticipation of my various Access deatabases being combined someday, I
would like to automatically populate a column on every record with a project
name I decide upon.
-MS Access 2007
-Users create records through forms created using the built-in feature to
create split forms.
-There are about 20 forms which create records for about 20 underlying tables.
-One separate database per project at this time. (Which is what we want for
now because we will not be networking the databases-- each project will be
separate mdbx, sometimes copied and moved around using USB jump drive.)
-It's OK for the value to be set rather manually and technically by me in
code for each copy of the database-- no need for form to create that value.
  #2  
Old April 26th, 2010, 08:16 PM posted to microsoft.public.access.gettingstarted
Tom Lake[_2_]
external usenet poster
 
Posts: 96
Default Same value written on all records automatically


"Kim Wennerberg" wrote in message
...
In anticipation of my various Access deatabases being combined someday, I
would like to automatically populate a column on every record with a project
name I decide upon.
-MS Access 2007
-Users create records through forms created using the built-in feature to
create split forms.
-There are about 20 forms which create records for about 20 underlying tables.
-One separate database per project at this time. (Which is what we want for
now because we will not be networking the databases-- each project will be
separate mdbx, sometimes copied and moved around using USB jump drive.)
-It's OK for the value to be set rather manually and technically by me in
code for each copy of the database-- no need for form to create that value.


I'd use an Update Query to set the value on existing records
and change the Default property for the field to the desired value
so future additions would have that value automatically.

Tom Lake

  #3  
Old April 26th, 2010, 08:39 PM posted to microsoft.public.access.gettingstarted
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Same value written on all records automatically

On Mon, 26 Apr 2010 11:45:01 -0700, Kim Wennerberg
wrote:

In anticipation of my various Access deatabases being combined someday, I
would like to automatically populate a column on every record with a project
name I decide upon.
-MS Access 2007
-Users create records through forms created using the built-in feature to
create split forms.
-There are about 20 forms which create records for about 20 underlying tables.
-One separate database per project at this time. (Which is what we want for
now because we will not be networking the databases-- each project will be
separate mdbx, sometimes copied and moved around using USB jump drive.)
-It's OK for the value to be set rather manually and technically by me in
code for each copy of the database-- no need for form to create that value.


I'd just add a text Project field to each table, with its Default Value set
per database to that database's Project name. It's not necessary to make any
changes to your forms or code; when a new record is created it will contain
the project.

This may be unnecessary and a waste of space, though, as this field could be
added later in the process of consolidating the databases.
--

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 09:41 AM.


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