Results 1 to 2 of 2
  1. #1
    hsavignac is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Dec 2015
    Posts
    1

    UPDATE query with CAST function

    Hi,

    I'm new to this forum. I checked many sites plus this forum and I didn't find any example of what I'm looking for. I have a syntax error in my query :

    UPDATE tblDistributeurs
    SET tblDistributeurs.Distributeur = 'Imavision 2000'
    WHERE CAST(Distributeur AS Long Text) Distributeur = 'Imavision 21'



    If anyone could give me a clue, I would appreciate.

    Thank you very much.

  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,521
    The CAST function is not valid in Access SQL. Try this, as no conversion may be necessary:

    UPDATE tblDistributeurs
    SET tblDistributeurs.Distributeur = 'Imavision 2000'
    WHERE Distributeur = 'Imavision 21'
    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: 6
    Last Post: 11-05-2015, 06:14 AM
  2. Replies: 6
    Last Post: 11-05-2014, 05:27 PM
  3. Update Function Like DLookup
    By EddieN1 in forum Access
    Replies: 1
    Last Post: 01-04-2013, 12:31 PM
  4. Replies: 1
    Last Post: 12-14-2012, 09:14 AM
  5. [access 2007] Update Query And Function
    By Zoroxeus in forum Queries
    Replies: 4
    Last Post: 04-16-2012, 04:19 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