Results 1 to 1 of 1
  1. #1
    gdpoc is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Posts
    15

    Update Query Xfered from Access 2007-2010 now non-functional.

    I have the following query (QRYTableSync2) updating the records in a table I use to populate a file browser.

    UPDATE TBLFileList INNER JOIN QRYTableSync1 ON TBLFileList.FileID = QRYTableSync1.FileID SET TBLFileList.LastName = [QRYTableSync1].[last], TBLFileList.Last4 = [QRYTableSync1].[last4]
    WHERE (((TBLFileList.FileID)=[QRYTableSync1].[FileId]));


    Structure for the table
    (Key) FileId (AutoNumber)
    FName (Text) (The file name with file extension)
    FPath (Text) (The file path)
    DateCreated (Date/Time)
    TBLStuForeignKey (Number) (Used to reference another table)
    LastName (Text)
    Last4 (Text)

    SQL for QRYTableSync1
    SELECT Left(Mid([TBLFilelist].[Fname],InStr([TBLFilelist].[Fname],'(')-4),4) AS Last4, Left([TBLFilelist].[FName],InStr([TBLFilelist].[FName],'(')-5) AS [Last], TBLFileList.FileID
    FROM TBLFileList;


    All of the files are formatted as such: LastnameLastfour(Stuff).
    An example of this would be Hope5555(Allowances).
    QRYTableSync1 is still functional and returns records accordingly but when I run QRYTableSync2 it returns nothing but blank records. This worked in access 2007 but now that the office has flipped to 2010 I'm experiencing issues with this tool. Does anyone have an idea why this particular query might have problems with access 2010?



    Edit: I wound up cleaning up the queries and combining the two and it works. I'm still curious as to why though. Does anyone know why that particular set of queries worked in 2007, but not in 2010?
    Last edited by gdpoc; 04-24-2012 at 08:41 AM. Reason: Functionality restored, still curious

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

Similar Threads

  1. [access 2007] Update Query And Function
    By Zoroxeus in forum Queries
    Replies: 4
    Last Post: 04-16-2012, 04:19 PM
  2. Replies: 3
    Last Post: 03-15-2012, 03:42 PM
  3. Running update query in access 2010
    By dbansal in forum Queries
    Replies: 1
    Last Post: 09-03-2010, 10:57 AM
  4. 2007 Access DB won't work in 2010 - 64 bit
    By InvGrp in forum Access
    Replies: 2
    Last Post: 07-12-2010, 08:45 AM
  5. MS Access 2007 vs 2010
    By ralphjramirez in forum Access
    Replies: 2
    Last Post: 05-06-2010, 06:30 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