PC Review


Reply
Thread Tools Rate Thread

Autofill FieldB based on FieldA Value

 
 
Wayne Wengert
Guest
Posts: n/a
 
      25th Jun 2006
I haven't worked with Access in some time and am trying to setup a table so
that when a row is added to a table, the value is fieldb is automatically
filled in based on the value entered for fielda. I thought that there was a
way to do this?


 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      25th Jun 2006
Wayne,

No, there is not a way to do this.

If you are using a form for data entry (tables are not usually suitable
for this purpose anyway), you could use macro or VBA procedure on the
form to effect this. But on the face of it, this would normally be
regarded as invalid database design. If one value is dependent on
another value in a database, it should normally be derived/calculated as
and when required for your data management requirements, and not stored
in a table. This is normally done in a calculated field in a query, or
in a calculated control on a form or report.

If that doesn't help, please post back with more details, with examples,
of the data you are working with and what you want to achieve.

--
Steve Schapel, Microsoft Access MVP

Wayne Wengert wrote:
> I haven't worked with Access in some time and am trying to setup a table so
> that when a row is added to a table, the value is fieldb is automatically
> filled in based on the value entered for fielda. I thought that there was a
> way to do this?
>
>

 
Reply With Quote
 
Wayne Wengert
Guest
Posts: n/a
 
      25th Jun 2006
Steve;

Thanks for the reply. do unstrand that what I want to do does not fit 3rd
normal form but have a simple need for a table to be used for a merge
operation and I was looking for an easy "convenience". As you indicated,
I'll probably just do a query.

Wayne

"Steve Schapel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Wayne,
>
> No, there is not a way to do this.
>
> If you are using a form for data entry (tables are not usually suitable
> for this purpose anyway), you could use macro or VBA procedure on the form
> to effect this. But on the face of it, this would normally be regarded as
> invalid database design. If one value is dependent on another value in a
> database, it should normally be derived/calculated as and when required
> for your data management requirements, and not stored in a table. This is
> normally done in a calculated field in a query, or in a calculated control
> on a form or report.
>
> If that doesn't help, please post back with more details, with examples,
> of the data you are working with and what you want to achieve.
>
> --
> Steve Schapel, Microsoft Access MVP
>
> Wayne Wengert wrote:
>> I haven't worked with Access in some time and am trying to setup a table
>> so that when a row is added to a table, the value is fieldb is
>> automatically filled in based on the value entered for fielda. I thought
>> that there was a way to do this?



 
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
autofill based on if/then statement... Devon Microsoft Access Form Coding 0 4th Sep 2009 06:14 PM
Autofill one field based on value in another Zburnsie Microsoft Access Database Table Design 2 30th Nov 2007 04:40 PM
Re: Access: If FieldA = n then FieldB else FieldC Brendan Reynolds Microsoft Access Queries 0 20th Sep 2004 12:30 PM
Access: If FieldA = n then FieldB else FieldC =?Utf-8?B?dGdzbXM=?= Microsoft Access Queries 0 20th Sep 2004 12:13 PM
Re: Populate FieldB Based on Contents of FieldA John Vinson Microsoft Access Database Table Design 0 13th Jan 2004 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:11 AM.