Results 1 to 8 of 8
  1. #1
    JustLearning is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    26

    Columns[2] not working, not populating field

    So I have this table with 4 headers (Center, Manager, Specialist, Analyst). On my form, I call this table to populate the Manager, Specialist and Analyst text boxes when they select what Center they need. I have this code:

    Private Sub Center_AfterUpdate()


    Me.Specialist = Me.Center.Column(1)
    Me.Manager = Me.Center.Column(2)


    Me.Analyst = Me.Center.Column(3)


    End Sub

    However, it only populates the Specialist field, leaving the other ones blank. Any ideas?


    EDIT with another question: I'm trying to find the value of a specific cell in a split datasheet form, I have the column I need and the value of another item in the row, how would I go about this? (Basically, I have a column that lists the number of requests, and a number that puts a value to those requests. I want to figure out the highest number of the requests, and then figure out the value of that request. The highest request isn't always the latest one, so I can't use max.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What kind of control is the Center control? Is it a ComboBox?

  3. #3
    JustLearning is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    26
    Yup, It's a combobox with a list of all the Centers (from the table)

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    With the Combobox selected, go to Properties - Format; what appears in the Column Count Property?

    Linq ;0)>

  5. #5
    JustLearning is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    26
    I had it set to 1, but when I set it to 4 all the names show up in a row. However, it will populate when I set it to 4. Is it possible to only show the first column as options?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Yep...by setting the ColumnWidths to 1";0";0";0"...or whatever you need.

  7. #7
    JustLearning is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2012
    Posts
    26
    Worked perfectly, thanks! Any ideas on the second question?

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about starting a new thread with your second question?

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

Similar Threads

  1. Populating a field
    By manicminer in forum Forms
    Replies: 7
    Last Post: 06-20-2012, 10:53 AM
  2. Populating one field based on another
    By thedanch in forum Access
    Replies: 1
    Last Post: 06-11-2012, 11:13 AM
  3. Replies: 2
    Last Post: 09-28-2011, 02:41 AM
  4. Replies: 3
    Last Post: 07-14-2011, 05:33 PM
  5. populating value of one field to another
    By jzacharias in forum Database Design
    Replies: 2
    Last Post: 09-08-2010, 02:39 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