PC Review


Reply
Thread Tools Rate Thread

Default value equals same value in another field in the same table

 
 
Akilah
Guest
Posts: n/a
 
      17th Jan 2008
Is there a way to automatically populated a field when another field in the
same table gets a value. For example, I have the fields AMOUNT_DUE and
CURRENT_VALUE. When a value is placed in the AMOUNT_DUE field I want that
same value to automatically populate the CURRENT_VALUE field. Is that
possible without running a query or macro?

Thanks,
Akilah
 
Reply With Quote
 
 
 
 
Al Campagna
Guest
Posts: n/a
 
      17th Jan 2008
Akilah,
Well, usually Amount_Due is a calculated field (ex.=Price * Qty), but if
Amount_Due is entered manually, you would use the AfterUpdate event of
Amount_Due to...

Private Sub Amount_Due AfterUpdate()
Me.Current_Value = ' your calculation here...
End Sub

Or, create a Macro using SetValue to calculate Current_Value

But, if... given any Amount_Due value, if you can always recalculate
Current_Value (on the fly), then you shouldn't be storing Current_Value at
all.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Akilah" <(E-Mail Removed)> wrote in message
news:0BD145B4-E3D8-4DBD-B5BB-(E-Mail Removed)...
> Is there a way to automatically populated a field when another field in
> the
> same table gets a value. For example, I have the fields AMOUNT_DUE and
> CURRENT_VALUE. When a value is placed in the AMOUNT_DUE field I want that
> same value to automatically populate the CURRENT_VALUE field. Is that
> possible without running a query or macro?
>
> Thanks,
> Akilah



 
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
Exclude data from field, when another field equals a certain numbe MacNut2004 Microsoft Access Queries 2 28th Apr 2010 06:57 PM
One Field Equals Another Bobmeister Microsoft Word Document Management 2 19th Sep 2008 08:09 PM
using a function w/table field to enter default in another field =?Utf-8?B?dHJleA==?= Microsoft Access VBA Modules 1 12th Sep 2007 01:54 PM
Default Value for field in Table =?Utf-8?B?S2FyaW4=?= Microsoft Access 11 17th Jul 2007 05:30 PM
Can a field in a table be the default value of another field? Dave Microsoft Access Database Table Design 1 1st Sep 2004 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 AM.