PC Review


Reply
Thread Tools Rate Thread

How to insert a default value based on user entry on another object.

 
 
Mick
Guest
Posts: n/a
 
      23rd Jul 2003
I got an application that I need to update that someone
else built and I am no Access guru.

When the Users are adding a new record, when they get to
the control for "units" if they enter a value > 0, when
they leave that control IF "Price" (a different control)
is Null I want to insert a default price. This would
come from a relating tables column "default price". the
tables are linked by "JOB".
Can someone give me a suggestion of where and how to do
this?

Thanks a bunch!
 
Reply With Quote
 
 
 
 
Glen Appleton
Guest
Posts: n/a
 
      23rd Jul 2003
Use the LostFocus event of the field to check and/or update the value based
on the current value. For example:

Private Sub MyTextBox_LostFocus()

If MyTextBox.Value = 0 Then MyTextBox.Value = 29.95

End Sub

Hope this helps,
- Glen

"Mick" <(E-Mail Removed)> wrote in message
news:075301c350b0$2b930f30$(E-Mail Removed)...
> I got an application that I need to update that someone
> else built and I am no Access guru.
>
> When the Users are adding a new record, when they get to
> the control for "units" if they enter a value > 0, when
> they leave that control IF "Price" (a different control)
> is Null I want to insert a default price. This would
> come from a relating tables column "default price". the
> tables are linked by "JOB".
> Can someone give me a suggestion of where and how to do
> this?
>
> Thanks a bunch!



 
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
I have value list for a combo - the source is "Level 2";"Level 1";"Entry 3";"Entry 2";"Entry 1"..... Chris K Microsoft Access Form Coding 2 25th Jul 2010 05:15 PM
Auto entry of data based on entry of text in another column or fie Judy Rose Microsoft Excel Misc 2 21st May 2008 01:14 PM
Automatically insert a date value based on the value from another cell cmartin2459 Microsoft Excel Worksheet Functions 6 19th Jul 2006 07:18 PM
How to change value of cell based on another value of another cell amrezzat Microsoft Excel Programming 1 7th May 2006 09:23 AM
Calculating a date field based on another field's date, based on another fields value circuit slave Microsoft Access Forms 6 26th Jan 2006 06:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:29 PM.