Results 1 to 10 of 10
  1. #1
    walpy is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Portland, ME
    Posts
    12

    Question Form w/ Combo and unbound text, need to get changes to textboxes to reflect on table

    I am trying to create a form off my one sheet of data called "Non ICF Trainings" and I have used a combo box at the top to populate the 16 or so unbound text boxes below which show the completion dates of trainings. It works fine, but what I cannot figure out is how to get them to update the data sheet once one of the dates (or blank dates) has been updated.

    Could anyone get me pointed in the right direction?

    Here is what the form looks like: [Form](http://i.imgur.com/w1EbGK6.png)

    Here is the (very basic) code: [Code](http://i.imgur.com/XL59H6d.png)



    If need be I can send the file to better show what I've done.

    Working off Access 2013

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Why are the textboxes unbound? Why do you need code to populate record?

    Attaching file can't hurt.

    I can't open those image links now - blocked.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    walpy is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Portland, ME
    Posts
    12
    No clue why this images wont work.. but the file is too large to attach apparently.. like 880ish kb. Here are the photos though:

    Click image for larger version. 

Name:	Aviary Photo_130336021396381910.jpg 
Views:	8 
Size:	248.5 KB 
ID:	14986 Table
    Click image for larger version. 

Name:	Screenshot (3).jpg 
Views:	8 
Size:	194.5 KB 
ID:	14987 Form
    Click image for larger version. 

Name:	Screenshot (4).jpg 
Views:	8 
Size:	136.2 KB 
ID:	14988 "Code" - if you're willing to call it that.

    I followed steps from this article as best I could to get to this point if I'm being honest. http://www.techrepublic.com/blog/mic...box-selection/

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Doesn't really answer my question of 'Why?'

    Is the zipped file over 2mb?

    Instead of VBA code, expression in textbox ControlSource property can display value from combobox column:

    =[Combo0].[Column](2)

    Use code only if you want to save value to record.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    walpy is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Portland, ME
    Posts
    12
    They are unbound because I am a complete novice and clicked insert textbox, and just left them. Didn't know what else I could do or should do with them. I guess I should say this is my first go with Access.

    And saving the values (once they are changed or added if blank) is exactly what I am trying to get accomplished.

    I apologize for my seeming complete ignorance

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Access is designed so that forms can be bound to table or query and data controls (textbox, combobox, listbox) can be bound to fields of the form RecordSource.

    Data entered/edited in bound controls will pass directly to record in table. This is very basic Access functionality.

    So back to the question of why using a combobox to populate unbound textboxes? What is the combobox RowSource?

    Did you try running Compact & Repair then zipping the db? 2mb zip file allowed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    walpy is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Portland, ME
    Posts
    12
    Jan6.14.zipI guess my issue, and where I went off track was I didn't know how to bind to my source table. In my head I know what I'm trying to get to, but googling old articles isn't cutting it. And not sure where a resource to learn from is. I really do appreciate you help though.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Does this one help http://office.microsoft.com/en-us/ac...010343724.aspx

    Any introductory reference book should cover these elementary features. Access Help should as well.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    walpy is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Portland, ME
    Posts
    12
    I appreciate your help and patience. I believe I've bound the Combo and Text boxes now, but when I edit them it is not being reflected to the Source Table.. care to take a look and just let me know if I'm headed in the right direction?

    Jan6.14 (2).zipJan6.14 (2).zip

  10. #10
    walpy is offline Novice
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Portland, ME
    Posts
    12
    Success! It works! Thank you!

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

Similar Threads

  1. Replies: 7
    Last Post: 12-11-2013, 03:43 PM
  2. Replies: 4
    Last Post: 07-17-2011, 06:07 PM
  3. Can't reflect changes table-forms
    By graciemora in forum Forms
    Replies: 10
    Last Post: 06-27-2010, 03:03 PM
  4. Bound a unbound text box to the table
    By Brian62 in forum Forms
    Replies: 1
    Last Post: 11-06-2009, 11:05 AM
  5. Get average of unbound textboxes.
    By markhook in forum Forms
    Replies: 8
    Last Post: 07-14-2006, 09:30 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