Results 1 to 3 of 3
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    Multiple Update Queries

    Hello,



    I have an update query where it takes data from one field and puts new data into another field. I only wanted those to show. For the rows that are blank in that field can I make another update query where it makes the blank rows show "Other"? I tried using an Iff statement and a Replace statement and it removed the previous update query as well and made those rows blank. Can anyone write the right syntax that would work for me? thanks

  2. #2
    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,870
    Show us the code you are using, and some example of what you want.

  3. #3
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283
    This is the code I used in the first update query: Switch([GroupName] Like "*SSD*","S",[Groupname] Like "*ATS*","D",[GroupName] Like "*CB*","D")..And I want to replace the empty cells in the field with "Other", so I tried making another update query, here's the one's I tried to use: Iff([PWO], " ", "Other"), and Replace([PWO], " ", "Other"). PWO is the field where the queries are updating to.

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

Similar Threads

  1. Combining multiple update queries
    By smalljaws in forum Queries
    Replies: 4
    Last Post: 05-13-2014, 11:25 AM
  2. Replies: 3
    Last Post: 10-18-2013, 07:29 AM
  3. Replies: 4
    Last Post: 06-13-2013, 01:02 PM
  4. Replies: 1
    Last Post: 01-10-2012, 10:12 PM
  5. Replies: 13
    Last Post: 02-23-2011, 08:38 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