Results 1 to 3 of 3
  1. #1
    joannakf is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    11

    Deleting all the text in a column

    I want to write a query that deletes all the text in a column but not the entire column.



    help please?

    thanks!

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,536
    What you want is an update query. This will allow you to specify a particular field in a table to update (in your case--updating the value in each record to Null. Her is a basic into to update queries. In your case, you would specify the field and update it to Null.

    Alan

  3. #3
    tanvi is offline Competent Performer
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    100
    Quote Originally Posted by joannakf View Post
    I want to write a query that deletes all the text in a column but not the entire column.

    help please?

    thanks!
    You can use two queries to delete the records from table:

    1) Use a delete query to remove entire records (rows) from a table or from two related tables, in one operation. Delete queries remove all the datain each field, including the key value that makes a record unique.

    2)
    Use an update query to delete individual field values from a table, Anupdate query let you delete values by updating the existing values toeither a null value (that is, no data) or a zero-length string (a pair of double quotation marks with no space between them). (As Alan already suggested)

    There are some points which you should verify before using a query to delete data; you can find it from here:http://office.microsoft.com/en-us/access-help/delete-data-from-an-access-database-by-using-a-query-HA010342091.aspx

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

Similar Threads

  1. Replies: 1
    Last Post: 03-25-2012, 05:36 PM
  2. Align text in a field column.
    By israellawndale in forum Access
    Replies: 1
    Last Post: 08-16-2011, 06:18 PM
  3. Replies: 11
    Last Post: 12-14-2010, 01:25 PM
  4. Adding text to column if match
    By niihla10 in forum Access
    Replies: 0
    Last Post: 08-26-2009, 01:39 PM
  5. centre justify column text
    By marky in forum Access
    Replies: 0
    Last Post: 09-01-2008, 12:02 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