Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 41
  1. #16
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    Quote Originally Posted by Gicu View Post
    And yes, they will not be editable, I thought that was what you wanted.



    Cheers,
    Sorry, I missed that part. You are correct that I do not want them editable. I was just stating that the results I was getting were not what I wanted and were not editable.

  2. #17
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Have a look at this:Click image for larger version. 

Name:	ComboColumn.PNG 
Views:	20 
Size:	10.8 KB 
ID:	41467 Click image for larger version. 

Name:	ComboColumn2.PNG 
Views:	19 
Size:	3.1 KB 
ID:	41468
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #18
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    Okay, my Control Source for the text button was showing this: ScenarioCombo.[Column(3)] That was put in there when I clicked on the build button (...) in the Control Source field and then used the Expression Builder.

    When I manually typed it to match what you have above (substituting my info), it worked like I want it to for the column 3 text box. If I put the same code and update it to (4) for the second text box, that text box does not get populated.

  4. #19
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    For my ScenarioCombo, I have it set to Column Count 4 and Column Widths 1" if that helps troubleshoot this issue.

  5. #20
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Remember I mentioned the column collection is 0 based (as most other Access collections are), to display the third column in the textbox you use =[ScenarioCombo].[column](2) and to display the fourth column you use =[ScenarioCombo].[column](3).

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  6. #21
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    Quote Originally Posted by Gicu View Post
    Remember I mentioned the column collection is 0 based (as most other Access collections are), to display the third column in the textbox you use =[ScenarioCombo].[column](2) and to display the fourth column you use =[ScenarioCombo].[column](3).

    Cheers,
    Yep, I've got a total of six column in that table. I am wanting to display column 4 (column 3 to Access) in the first text box and column 5 (column 4 to Access) in the secdond text box.

  7. #22
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    For my ScenarioCombo, I have it set to Column Count 4 and Column Widths 1" if that helps troubleshoot this issue.
    The fact that they are in the table is irrelevant, you need to have them in the rowsource of the check box.
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  8. #23
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    I wish I could post some screen shots for you, but I can't.

    To the ScenarioCombo combo box, I added columns 3 and 4 (0 based counting) to the Row Source.

    To text box DurationText I added =[ScenarioCombo].[column](3)

    To text box ThreatsText I added =[ScenarioCombo].[column](4)


    Text box DurationText updates as I change ScenarioCombo as it should. Text box ThreatsText does not change (it is always just blank).

  9. #24
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    To use =[ScenarioCombo].[column](4) you need to have the ColumnCount property of the ScenarioCombo>=5 (0,1,2,3,4) but you have it as 4.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  10. #25
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    I tried that earlier and again right now and ThreatsText still does not get populated with any data.

  11. #26
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Can you upload a small sample of your db with the table and the form?
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  12. #27
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    My database has some data I can't post to public locations. Let me rebuild a generic database to mirror these tables and form that I can share.

  13. #28
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Of course, just the objects involved in the form and only a few "dummy" records.
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  14. #29
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    It is too large for me to attach here on the site and I can't get it to compress on my company laptop.

  15. #30
    Etoimos is offline Competent Performer
    Windows 7 64bit Access 2016
    Join Date
    Mar 2020
    Posts
    249
    Okay, I think I got it to attach:

    TestDB.accdb

Page 2 of 3 FirstFirst 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 11-09-2017, 04:11 PM
  2. Cascading Drop Downs Based on Previous Selection
    By KirstyAmanda in forum Forms
    Replies: 6
    Last Post: 05-05-2017, 07:13 AM
  3. Auto text based on drop menu selection
    By mandykoonts in forum Forms
    Replies: 6
    Last Post: 01-06-2014, 04:17 PM
  4. Replies: 8
    Last Post: 12-07-2013, 05:22 PM
  5. Replies: 2
    Last Post: 08-14-2013, 04:29 PM

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