Results 1 to 3 of 3
  1. #1
    Gdm is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    28

    nested functions not working in 2010?

    I have an Access 2010 DB (64-bit) which was converted from 2003.
    In 2003 there was a query with a calculated column similar to this:

    Expr1: IIf(Instr(1,[Name],"-")>0,"yes","no")

    In Acc2010, this get a compile error!



    What's going wrong?

    Help would be most appreciated.

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    If [name] is null, the Instr function will return null.

    Also, "Name" is a reserved word in Access.

  3. #3
    Gdm is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    28

    Nested function not working

    In my example I used [Name] as a place holder, not an actual variable.
    The error I am getting is not a Null problem, but a syntax error.
    Help would be most appreciated.

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

Similar Threads

  1. Access 2010
    By Desstro in forum Access
    Replies: 8
    Last Post: 01-19-2016, 04:09 PM
  2. Nested IIF statements?
    By laavista in forum Access
    Replies: 9
    Last Post: 06-22-2010, 10:35 AM
  3. Nested If Expressions
    By Lynn in forum Forms
    Replies: 5
    Last Post: 03-25-2010, 10:11 AM
  4. Nested Joins
    By zephaneas in forum Programming
    Replies: 0
    Last Post: 11-10-2008, 11:49 AM
  5. Concatenation, nested IIF functions
    By krymer in forum Queries
    Replies: 2
    Last Post: 10-20-2008, 07:27 AM

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