Results 1 to 3 of 3
  1. #1
    mjj4golf is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Location
    Raleigh North Carolina
    Posts
    9

    Changing 0 and -1 in a field to something else


    I inherited this db and trying to make it more user friendly. I have a combobox on a form that has a "value list" of New and Return. The table/query being used has a -1 or 0(T or F). Is there a way to convert the -1 or 0 to another value; like "New" for True or "False" for Return? And also when adding a new record, and choosing "New or Return" from a combobox, how would I store it to the table as a -1 or 0?

    Mike

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If you want to use a combo, it could be a value list with 2 columns, the first the numeric value and the second what you want to display. The first column would be the bound column but hidden via the column widths property.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,938
    Another alternative if you are using a textbox you can use the format property for the control

    ;"New";"Return"

    but if users can click on the control to change it, they will see 0 and -1 because they will be editing the underlying value

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

Similar Threads

  1. Changing the criteria on the fly in a field
    By Thompyt in forum Reports
    Replies: 3
    Last Post: 02-12-2015, 04:03 PM
  2. Changing a Field Format
    By lwinford in forum Forms
    Replies: 3
    Last Post: 04-23-2013, 01:18 PM
  3. Replies: 2
    Last Post: 01-31-2013, 07:44 PM
  4. Changing value of a field after an event.
    By mikethebass in forum Access
    Replies: 1
    Last Post: 06-16-2010, 04:42 PM
  5. changing a records field value
    By tubar in forum Queries
    Replies: 3
    Last Post: 07-06-2009, 07:36 AM

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