Forums  

Go Back   Forums > Microsoft Office > Microsoft Access

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2010, 11:33 AM
External
 
Join Date: Feb 2010
Posts: 1
Default Default Value in Table

I need a default value in my table to be the date value of another field in
the table + 25 days. When I try to place this in the default value box, it
says there is a type mismatch.

="ANLDate" + 25

Both fields are short date format.

Any help is greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 02-22-2010, 11:54 AM
External
 
Join Date: Jan 2009
Posts: 32
Default RE: Default Value in Table

When you use ="ANLDate" + 25 you are trying to add a number to a text string
and that don't work. It would be =[ANLDate] + 25 but that will not work as
the default is used when a new record is created and [ANLDate] is null upon
creation of a new record.

There is no reason to store the calculation as you can always do it in a
query or report.
Reply With Quote
  #3 (permalink)  
Old 02-22-2010, 02:53 PM
External
 
Join Date: Dec 2008
Posts: 69
Default Re: Default Value in Table

Cora,

What you are trying to do cannot be done at the table level. You will need
to do that on the form level. Is there any particular reason you are doing
this in a table?

source: microsoft > public > access
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

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


All times are GMT. The time now is 10:19 PM.


Powered by iForumz© Version 1.1a

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0