Results 1 to 4 of 4
  1. #1
    tn_developer is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2012
    Posts
    13

    Updating Field in Table

    Hi,



    I have a Contact table and imported data into it from another Access Contact table. All but one field inserted correctly - the "Notes" field from the table I was importing FROM was inserted into the WebPage field of my current table. So now I am trying to update my Notes field in the Contact table from the WebPage field in the Contact table - or move the data over rather. I created an update query but when I try to run it it is asking for the Notes and WebPage paramaters.

    Could use some guidance as to how to write this query.

    Thanks,
    ~k

  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,518
    It may have helped if you posted the failing SQL, but:

    UPDATE TableName
    SET Notes = Webpage

    then

    UPDATE TableName
    SET Webpage = Null

    or

    UPDATE TableName
    SET Webpage = ""
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tn_developer is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2012
    Posts
    13
    Quote Originally Posted by pbaldy View Post
    It may have helped if you posted the failing SQL, but:

    UPDATE TableName
    SET Notes = Webpage

    then

    UPDATE TableName
    SET Webpage = Null

    or

    UPDATE TableName
    SET Webpage = ""
    Thank you. Got it to work.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help
    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: 14
    Last Post: 09-13-2012, 01:15 PM
  2. Replies: 7
    Last Post: 07-12-2012, 02:35 PM
  3. Updating Yes/No field in a table via a query
    By immortal_dranzer in forum Queries
    Replies: 12
    Last Post: 03-22-2012, 12:32 AM
  4. Replies: 2
    Last Post: 07-07-2011, 08:25 AM
  5. Updating Table field from Form
    By Kunuk in forum Access
    Replies: 0
    Last Post: 02-26-2009, 11:41 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