Results 1 to 2 of 2
  1. #1
    lspelman is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    Alberta
    Posts
    12

    Update Query

    I did an update query and lost all my data in one of my fields. So I have imported the data back into the database and now trying to do another update query to replace the info for all the records in that one field.



    I have the following:

    UPDATE [Work Details] SET [Work Details].Hours = [Work Details1].[Hours];


    and keep getting the message 'to enter parameter value for [Work Details1].

    I'm not sure why I get this and what I'm suppose to enter??

    Thanks

  2. #2
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    you should use the WHERE clause also while updating some columns otherwise the whole database will be updated for that column values.

    Check it:

    UPDATE Products
    SET RetailPrice = RetailPrice * 1.04
    WHERE CategoryID = 3
    This will update only those records WHERE CategoryID = 3

    What is the [Work Details1]??? do you have another table with this name in your database? or its an alias of the same table?

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

Similar Threads

  1. Select Query > Update Query > Table Field
    By tuggleport in forum Queries
    Replies: 2
    Last Post: 08-09-2012, 07:04 AM
  2. Update 2 tables with one Update Query
    By Douglasrac in forum Queries
    Replies: 4
    Last Post: 04-14-2011, 08:33 AM
  3. Replies: 1
    Last Post: 04-14-2011, 07:19 AM
  4. Replies: 2
    Last Post: 01-31-2011, 08:31 AM
  5. Update Query- selective update?
    By stephenaa5 in forum Queries
    Replies: 1
    Last Post: 10-29-2009, 11:15 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