Results 1 to 4 of 4
  1. #1
    shralpy is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    7

    Date expression

    I am trying to get textboxB to automatically be valued at two years from textboxA but its not working??????



    This is the expression I am using for event afterupdate:

    [textboxB]=AddDate("yyyy",2,[textboxA])

    HELP!!!!!!!
    Last edited by shralpy; 12-01-2011 at 03:41 PM. Reason: backwards

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Close but no cigar...

    its DateAdd("yyyy",2,[Textbox1])

  3. #3
    shralpy is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    7
    Thanks hertford but actually i mislabeled on this thread I have DateAdd for expression

  4. #4
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Next guess

    TextBoxA contains a string instead of a datevalue? In which case you need to use a function to convert TextBoxA to a datevalue.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Expression Help
    By Hammer in forum Queries
    Replies: 2
    Last Post: 01-14-2011, 10:30 AM
  2. Date expression issues
    By QTip in forum Queries
    Replies: 4
    Last Post: 01-06-2011, 03:43 PM
  3. Error in query expression Date()
    By boywonder in forum Queries
    Replies: 15
    Last Post: 12-26-2010, 06:04 PM
  4. Date of Birth Access expression
    By Father John in forum Access
    Replies: 5
    Last Post: 12-02-2010, 10:33 PM
  5. Expression value
    By KWarzala in forum Reports
    Replies: 0
    Last Post: 06-15-2010, 12:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums