Results 1 to 6 of 6
  1. #1
    Heathey94 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2015
    Location
    United Kingdom
    Posts
    282

    Yes/No check box populates table with text

    Is it possible to get a tick box in a form to populate a field in a table?



    in my case for example, I have a range of questions which appear on different versions of a questionnaire. When a new version of the questionnaire is created, I want a new row to be created with all of the same values as the previous version, but the formversion field changes to the most recent version (which was entered on the form by the user).

    If you don't understand just say so and I'll try to rephrase it, or if you feel having access to the database would be better, I can do that too.

  2. #2
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    not sure i'm understanding. are you calling a record number a version? if so then yes with a little code.

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Is it possible to get a tick box in a form to populate a field in a table?
    Yes; just make sure the form has the table as its recordsource, then set the control source of the form checkbox(es) to the relevant table fields. The fields in the table must be set to data type Yes/No in design view.

    Access actually stores the data as a numeric value (0 or -1); how you see it can vary, but a checkbox is one option.

  4. #4
    Heathey94 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2015
    Location
    United Kingdom
    Posts
    282
    vicsaccess - yes, sorry in my case the form versions are listed as records.

    John_G - Apologies, I don't think I was clear enough - the field needs to be a text field (since a version could be 4A etc. and the tick indicates 4A needs to populate the field in the table).

  5. #5
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    i think I'm getting lost with the terminology. do you have a sample DB you could post?

  6. #6
    Heathey94 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2015
    Location
    United Kingdom
    Posts
    282
    OK, so I've attached the database I'm working on, the forms in question are the EditLowRiskFormVersion (and also the Medium and High risk versions). I will create a similar version for adding the form versions, which is more along the lines of what I was describing earlier.

    On the Edit versions of the forms, if a user unselects the "InVersion" check box, followed by clicking the "Update" button will delete that row from the table (not what I was originally talking about I know, but it appears I haven't yet created the add versions, and I don't actually know how to do this anyway...)

    On the Add versions, the form will be displayed exactly the same, but the "VersionNumber" Combo will be a text box where the user will enter a new version number. Then, if a user leaves a check box selected for any "behaviour" that behaviour/record will be added as a new record, with the "VersionNumber" as displayed above.

    Hopefully that is clear, if not just ask!

    Thanks for your help
    Attached Files Attached Files

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

Similar Threads

  1. Replies: 2
    Last Post: 01-10-2016, 06:47 PM
  2. Replies: 1
    Last Post: 12-14-2014, 03:16 PM
  3. Check Box -1 Value to Text
    By CementCarver in forum Reports
    Replies: 3
    Last Post: 04-22-2013, 01:37 PM
  4. Replies: 11
    Last Post: 12-25-2011, 04:33 PM
  5. Replies: 3
    Last Post: 11-03-2010, 09:53 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