Results 1 to 3 of 3
  1. #1
    mercapto is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jan 2012
    Location
    Spain
    Posts
    91

    To clear certain fields of a table

    Hello, everyone.

    I don't know if this must be a query or code.

    When I first created my db, I used the "default value" for several fields. Some records don't use certain fields, so I'm planning to clear those fields to free memory space.

    I believe I need to create a query with a "WHERE [Type] = n" condition. In this query I want to clear all the data in the rest of the fields (not in the type field, of course).



    How would you do it??

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    You should create an update query. Here is a link on how to do that.

    http://www.databasedev.co.uk/update_query.html

  3. #3
    mercapto is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jan 2012
    Location
    Spain
    Posts
    91
    Thanks, alansidman, that was a very useful link.

    I also had to check this one, indeed:

    http://www.access-programmers.co.uk/...d.php?t=156892

    Solved.

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

Similar Threads

  1. how to clear fields after submit
    By nabiki in forum Forms
    Replies: 1
    Last Post: 07-26-2012, 02:30 AM
  2. Macro to add and clear fields
    By Skroof in forum Access
    Replies: 1
    Last Post: 05-14-2012, 01:13 PM
  3. Clear some fields and not others
    By funkygoorilla in forum Access
    Replies: 12
    Last Post: 08-23-2011, 07:38 AM
  4. Form Fields Clear
    By rajulasb in forum Access
    Replies: 1
    Last Post: 08-06-2011, 01:11 AM
  5. Clear fields in a record
    By stryder09 in forum Access
    Replies: 9
    Last Post: 05-12-2011, 01:34 PM

Tags for this Thread

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