Results 1 to 4 of 4
  1. #1
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226

    Update Query does not allways work


    This update query works at home. When I take to to a another access 2007 machine it does not work.
    Any reason why?


    UPDATE [Name-Address] SET [Name-Address].L_Init = Left([Name-Address]![L_Name],1), [Name-Address].F_Init = Left([Name-Address]![F_Name],1), [Name-Address].Init_Last_Name = [Name-Address]![F_Init] & " " & [Name-Address]![L_Name], [Name-Address].FName_Init = [Name-Address]![F_Name] & " " & [Name-Address]![L_Init], [Name-Address].[Full Name] = [Name-Address]![F_Name] & " " & [Name-Address]![L_Name];

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    can you provide more detail about "it does not work"?
    what do you have, what do you expect, what happen, or any error messages

  3. #3
    SteveF is offline Generally AccessAble
    Windows XP Access 2010 32bit
    Join Date
    Nov 2010
    Location
    Fourth Corner
    Posts
    123
    Quote Originally Posted by newtoAccess View Post
    This update query works at home. When I take to to a another access 2007 machine it does not work.
    Any reason why?


    UPDATE [Name-Address] SET [Name-Address].L_Init = Left([Name-Address]![L_Name],1), [Name-Address].F_Init = Left([Name-Address]![F_Name],1), [Name-Address].Init_Last_Name = [Name-Address]![F_Init] & " " & [Name-Address]![L_Name], [Name-Address].FName_Init = [Name-Address]![F_Name] & " " & [Name-Address]![L_Init], [Name-Address].[Full Name] = [Name-Address]![F_Name] & " " & [Name-Address]![L_Name];
    PMFJI, but why would you want to do this in the first place? Forgive me if this seems rude, but this is just taking up needless space in your table for something that only needs to be done on an as-needed basis. If you want these extra fields for a form or report, just build a select query with these as calculated fields.

    This is one of the things that queries are for!

    Steve

  4. #4
    newtoAccess is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    226

    OK Thanks

    Ok, I will build a query, and run the query every time I need the info.

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

Similar Threads

  1. Replies: 3
    Last Post: 12-20-2010, 09:22 AM
  2. Parameter Query doesn't work
    By Kimmie in forum Access
    Replies: 5
    Last Post: 10-07-2010, 01:30 PM
  3. Query doesn't work the day after
    By sithis876 in forum Queries
    Replies: 1
    Last Post: 07-13-2010, 07:11 AM
  4. Replies: 0
    Last Post: 02-27-2009, 01:39 PM
  5. Nested IIf query will not work
    By ddog171 in forum Queries
    Replies: 1
    Last Post: 06-20-2006, 02:03 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