Results 1 to 7 of 7
  1. #1
    DeniseBerry is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    3

    Replace one field in a table

    We are running quite a large SQL database.
    Occasionally we are required to change one field in a Table to transfer the data to another Form View.
    I would like to run this via a Macro button in a Form.
    Can anyone assist me in how to do I do this?



    thanks.

  2. #2
    John_G is offline VIP
    Windows 10 Access 2016
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    we are required to change one field in a Table
    What do you mean by that? Do you mean change (update) the values of that field in all records? Change it only in one or some records? Or do you mean change the data type of that field?

    Please provide more details.

  3. #3
    DeniseBerry is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    3
    Hi John
    The field only needs to be changed for one field for one record. I would like to have a button on the form to input the change. The change will be replacing the field with a 0.
    I hope I am making it clearer. Apologies for the confusion

  4. #4
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Run an update query to do that (or the SQL equivalent) on the button click event
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  5. #5
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Occasionally we are required to change one field in a Table
    Your terminology is very confusing. It sounds like you want to rename a field from something like "Quantity" to "Used".

    Or do you mean you want to change the value of a field to a different value??


    BTW, welcome to the forum...

  6. #6
    DeniseBerry is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2018
    Posts
    3
    Thank you ssanfu
    I want to change the value of a field .

  7. #7
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    As I suspected. Do what I wrote in post 4
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

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

Similar Threads

  1. Replace Data Where Field is not blank
    By tcheck in forum Programming
    Replies: 2
    Last Post: 10-31-2016, 10:37 AM
  2. Replies: 2
    Last Post: 01-31-2016, 08:47 PM
  3. Replies: 2
    Last Post: 03-22-2015, 10:28 AM
  4. Replies: 1
    Last Post: 11-30-2012, 05:57 AM
  5. Replies: 3
    Last Post: 06-07-2012, 07:05 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