dbTalk Databases Forums  

default values

comp.database.ms-access comp.database.ms-access


Discuss default values in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default default values - 06-07-2004 , 06:58 PM






i have three columns
hrs_due, hrstaken, and totalhrsneeded
i need the default value of hrs_due to = totalhrsneeded - hrstaken
the data type of all is number>long integer, and i try to key =[totalhrsneeded]-[hrstaken] into the default value of hrs_due but it
will not accept it can anyone plz help??
thanks




Reply With Quote
  #2  
Old   
Philippe Ducarme
 
Posts: n/a

Default Re: default values - 06-09-2004 , 03:15 AM






You can't do this at the table design level. At the form design level
however, you can catch the On Insert event.


<jjrmy1 (AT) earthlink (DOT) net> wrote

Quote:
i have three columns
hrs_due, hrstaken, and totalhrsneeded
i need the default value of hrs_due to = totalhrsneeded - hrstaken
the data type of all is number>long integer, and i try to key =[totalhrsneeded]-[hrstaken] into the default value of hrs_due but it
will not accept it can anyone plz help??
thanks

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.