Results 1 to 2 of 2
  1. #1
    Juan4412 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Dec 2010
    Posts
    209

    Error with Replace Function

    Replace Function Error

    This is the syntax


    Total: Replace([FirstOffer] & IIf(Len([Offer2])>0,", " & [Offer2],""),"|",",")

    And it tells me undefined function 'Replace' in expression???

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    Why Replace function?

    Offer2 is text? Can Offer2 be null? Need to handle.

    [FirstOffer] & IIf(IsNull([Offer2]),"","|" & [Offer2])
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replace function adding in unwanted carriage return
    By timmygrover in forum Queries
    Replies: 10
    Last Post: 07-02-2012, 11:58 AM
  2. Replies: 3
    Last Post: 06-07-2012, 07:05 AM
  3. Replies: 2
    Last Post: 03-03-2012, 10:16 AM
  4. Replace Function with Table Lookup
    By smurof in forum Access
    Replies: 1
    Last Post: 07-29-2011, 07:52 PM
  5. Applying a find/replace function
    By Arr in forum Programming
    Replies: 2
    Last Post: 10-12-2009, 12:28 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