Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    rajgoyal00 is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Posts
    26
    I HAVE IT WORKING!!!!!!!!!!!!!!!!!!!!!


    This is the working Code

    strSQL = "Update([Products_Tbl] INNER JOIN [Parts Types] ON [Products_Tbl].[Item Code] = [Parts Types].[Parts ID]) " & _
    " INNER JOIN [Car_Parts] ON [Parts Types].[Parts Type] = [Car_Parts].[Parts Type] " & _
    " SET Products_Tbl.[Qty on Hand] = [Qty on hand]-[Car_Parts].[Qty] " & _
    " WHERE [Car_Parts].[Product Code] ='" & [Forms]![Sales_Entry_Form]![Prod_Code_Text] & "'" & _
    " And [Products_Tbl].[Item Code] = [Parts Types].[Parts ID] " & _
    " And ([Car_Parts].[Basic Package] = True " & _
    " Or [Car_Parts].[Luxury Package]= True) "

    I have no idea what all was the problem.

    I am gonna try iff in it just to see. Will post results.

    Thanks again for all the help

  2. #17
    rajgoyal00 is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Posts
    26
    The iff in it gave me those type mismatch results again..

    Will stuck with current code and the if and else setup....

    Thank You guys.... I am learning as I go, and it would not have been possible without all of you good folk out there,,,

    I wish you guys great holidays and a very Merry Christmas

  3. #18
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Update Query Not Working Properly !
    By hamxa7 in forum Queries
    Replies: 3
    Last Post: 09-20-2012, 04:58 PM
  2. Access update query not working
    By Paul-NYS in forum Queries
    Replies: 5
    Last Post: 03-03-2012, 02:16 PM
  3. Update query only working on some records
    By JackieEVSC in forum Queries
    Replies: 3
    Last Post: 11-21-2011, 10:31 AM
  4. Update Inner Joing Query not working??
    By snowmman99 in forum Access
    Replies: 2
    Last Post: 09-08-2010, 12:15 PM
  5. IIf Update Query working OK but a better way?
    By dreamweaver547 in forum Queries
    Replies: 7
    Last Post: 04-19-2010, 09:47 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