PC Review


Reply
Thread Tools Rate Thread

ACCESS 2007 Calculated Primary Field

 
 
New Member
Join Date: Dec 2010
Posts: 1
 
      19th Dec 2010
Hi - I've set up a simple database for some survey work. Data tables are linked by a primary key consisting of a 10 to 12 digit location code (picked up from a drop-down list) and a 2 digit survey number - all stored as text. Rather than use compound relationships I would like to combine these into a single primary key.
I know calculated fields in tables are wicked...! but how can do I do this automatically in ACCESS 2007. I can combine the two easilly in a calculated control in a form.... but not directly into the primary field. Although the result does appear in the control - I get an error message telling me I can't have a null entry in the primary field. Do I need to set up an event procedure???? Thoughts much appreciated

Last edited by Joemully; 19th Dec 2010 at 04:55 PM..
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access 2007: Calculated field based on subform: mmullins Microsoft Access Forms 1 14th May 2010 03:59 AM
2007 Pivot table Calculated field misbehaving Pierre Microsoft Excel Worksheet Functions 1 20th Feb 2010 01:24 AM
Execl 2007 Pivot Olap calculated Field Manfred Steinbacher Microsoft Excel Discussion 1 30th Oct 2008 02:38 PM
compound primary key using calculated field quaddawg via AccessMonster.com Microsoft Access Database Table Design 9 13th Dec 2007 11:29 PM
Can't use calculated field for row or column area in Beta 2007 Gert Kok Microsoft Excel Discussion 5 13th Nov 2006 07:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:47 PM.