Solved

Drop down box not showing all columns

Posted on 2013-12-06
3
352 Views
Last Modified: 2013-12-06
Hello~
I've got multiple down down boxes that in my conversion from 2003 to 2010 are not showing all the columns. Not sure why?? I've attached the code behing the Row Source Type (fillcert) and the code for the GetCertCodes. As well as a screen shot of what is showing up and the properties of the form in access. I have another one that is working but I have no idea why one is and the others are not. The code looks the same.
Any help appreciated.
Function-FillCert.docx
0
Comment
Question by:dminx13
  • 2
3 Comments
 

Author Comment

by:dminx13
ID: 39701391
Code that is working on another form:

Private Function FillOpenReqs(fld As Control, ID, row, col, Code)
    '  Procedure is used to fill open requisitions combo box
   
    Select Case Code
        Case 0
            Call GetOpenRequisitions
            FillOpenReqs = True
        Case 1
            FillOpenReqs = Timer
        Case 3
            FillOpenReqs = intOpenReqCount
        Case 4
            FillOpenReqs = 4
        Case 5
            If col = 0 Then
                FillOpenReqs = 700
            ElseIf col = 1 Then
                FillOpenReqs = 1100
            ElseIf col = 2 Then
                FillOpenReqs = 2500
            Else
                FillOpenReqs = 650
            End If
        Case 6
            If col = 0 Then
                '  Req number
                FillOpenReqs = varOpenReqs(0, row)
            ElseIf col = 2 Then
                '  Department
                FillOpenReqs = varOpenReqs(1, row)
            ElseIf col = 3 Then
                '  Title
                FillOpenReqs = varOpenReqs(2, row)
            ElseIf col = 1 Then
                ' Open Date
                FillOpenReqs = CStr(Format(varOpenReqs(3, row), "mm/dd/yyyy"))
            End If
    End Select
   
End Function


    '  procedure is used to fill the varOpen Req variable
    Dim db As Database
    Dim rs As Recordset
    Dim sSQL As String
   
    sSQL = "SELECT Requisitions.ID, Department.Description AS Department, "
    sSQL = sSQL + "JCC.Description AS Title, Requisitions.OpenedDate "
    sSQL = sSQL + "FROM (Requisitions INNER JOIN JCC ON Requisitions.JobClassCodeID = JCC.JCC) "
    sSQL = sSQL + "INNER JOIN Department ON Requisitions.DepartmentID = Department.Department "
    sSQL = sSQL + "WHERE (((Requisitions.Status) = 1)) "
    sSQL = sSQL + "ORDER BY Department.Description, JCC.Description; "
   
    Set db = ServerDB
   
    Set rs = db.OpenRecordset(sSQL, dbOpenDynaset, dbSeeChanges)
   
    With rs
        .MoveLast
        .MoveFirst
        varOpenReqs = .GetRows(.RecordCount)
        intOpenReqCount = .RecordCount
        .Close
    End With
    Debug.Print intOpenReqCount
   
    Set rs = Nothing
    Set db = Nothing
   
   
End Sub
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39701609
check the Column Count property of the list/combo box

make sure you set it to the number of columns of your RowSource..

also, check the Column Widths setting..
0
 

Author Closing Comment

by:dminx13
ID: 39701714
Never existed in 2003 so didn't even know about that!!!! Thank you!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question