Results 1 to 6 of 6
  1. #1
    That_Guy is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    13

    Expression Error in "Field" in Design View - I don't get it

    This is what is in my Field: Box in my Append Query.

    Expr1: [WO End Date]+1

    I simply want to add a day onto the WO End Date. Every time I enter [WO End Date]+1 I get the Expr1 added to the start and it simply ignores this part of my query.



    I also have another: IIf([Classification]="IMW (FP)","FP",IIf([Classification]="FP","FP",IIf([Classification]="AG","T & M",IIf([Classification]="CO - Contractor","T & M",IIf([Classification]="Contractor","T & M",IIf([Classification]="Agency Temp","T & M","T & M"))))))

    Not sure what the deal is with these fields always getting skipped.

    Thanks,
    Guy

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Access is simply giving the field a default name since you didn't give it one. You can change it if you want. Did you specify a destination field?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    That_Guy is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    13
    Quote Originally Posted by pbaldy View Post
    Access is simply giving the field a default name since you didn't give it one. You can change it if you want. Did you specify a destination field?

    Thanks for the prompt response. I changed it to the following-


    Field: WO End Date: [WO End Date}+1
    Table: WO TABLE
    Append To: New Work Order Start Date


    Error that pops up.

    Syntax error in query expression '[WO TABLE].[[WO End Date]+1'.


    Suggestion?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Do you really have the mis-matched brackets, or is that a typo? Also, I wouldn't alias the field with the same name as an existing field; it can confuse Access, as it won't know which you're referring to later.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    That_Guy is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    13
    The way I have it typed in with blue text is how it is really typed in. The format when the error windows pops up shows the additional brackets for some strange reason.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Try

    WOEndDate: [WO End Date]+1
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 03-08-2013, 12:59 PM
  2. Replies: 4
    Last Post: 07-25-2012, 04:01 AM
  3. Replies: 13
    Last Post: 12-05-2011, 05:10 AM
  4. Replies: 8
    Last Post: 08-05-2011, 02:55 PM
  5. Replies: 2
    Last Post: 05-17-2011, 02:40 PM

Tags for this Thread

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