Results 1 to 7 of 7
  1. #1
    kcortina is offline Novice
    Windows XP Access 2016
    Join Date
    Jul 2018
    Posts
    3

    Need textbox in form to reflect data in table

    Hi,


    I am creating a form for QA purposes and I need the scores to be saved into a table. I have 3 "score types" (Rockstar / Professional / Learner) and I have created a textbox with the expression =IIf([CmbLS]="Rockstar",10,IIf([CmbLS]="Professional",5,IIf([CmbLS]="Learner",0))) in order for a numbered score to autofill based on the score type selected, however since this is entered as the control source, these numbered scores are not saving into the table under field I've titled "Points_Listening" and I need them to in order to avoid human error. Any help with this would be greatly appreciated!

  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,521
    I'd have a table with the cmbLS values and the associated numeric values. Then use this for display:

    http://www.baldyweb.com/Autofill.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    If you put these names/values in a table,you won't need IIF statements.

  4. #4
    kcortina is offline Novice
    Windows XP Access 2016
    Join Date
    Jul 2018
    Posts
    3
    I'm not quite sure what you mean. The names themselves are populating into the table through combo boxes.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Rather than hard coding the values into a formula, they should be in a table. Much more flexible and dynamic, and you can use the method above to display or populate the values. If you resist that:

    http://allenbrowne.com/casu-14.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    kcortina is offline Novice
    Windows XP Access 2016
    Join Date
    Jul 2018
    Posts
    3
    I'll try this. Thank you!

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, post back if you get stuck.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 9
    Last Post: 01-09-2014, 02:58 PM
  2. Replies: 25
    Last Post: 08-01-2012, 05:22 PM
  3. Replies: 4
    Last Post: 12-22-2011, 03:04 AM
  4. Replies: 4
    Last Post: 07-17-2011, 06:07 PM
  5. Replies: 4
    Last Post: 01-05-2011, 07:56 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