Results 1 to 2 of 2
  1. #1
    coolbear91 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    4

    Exclamation using macro to rename column values in Access

    dear all,

    I'm new in Access and trying to use macro to rename any NULL columns into some other values.
    my questions are:

    1. what kind of command should I use to do that?
    2. is there any way in access to record any change with macro as we can find in Excel?

    I'm totally blank regarding to this and kindly need your advice.


    thank's.

  2. #2
    alcapps is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2012
    Posts
    292
    you can do many things to solve this issue..

    one is to set the default to something

    default property will make the value as you would like it to be.

    ="NA" or what ever you want it to be.

    Audit control can be done many ways..

    one is you can handle the records yourself and save a new record every change using
    startdate and stopdate fields
    current record would be the stopdate is null

    or you can check only the fields your interested in by using the after update of each field you want to track
    and update a table with the oldvalue property and current value with user id and date..
    if the value changes.. update the table with the now date, field name, table it came from, old value and new value and user

    so if you had column Field1

    in the after field1.after update event
    if me.field1.oldvalue <> me.field1 then
    write record...
    end if

    setup an audit table
    id
    asofdate
    table
    field
    oldvalue
    newvalue
    user

    hope that helps

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

Similar Threads

  1. Replies: 15
    Last Post: 11-08-2012, 10:09 AM
  2. Replies: 8
    Last Post: 08-02-2012, 08:48 AM
  3. Replies: 3
    Last Post: 12-21-2010, 11:52 AM
  4. Replies: 4
    Last Post: 11-05-2010, 04:56 AM
  5. Replies: 1
    Last Post: 08-21-2009, 06:52 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