Solved

Drop down box not showing all columns

Posted on 2013-12-06
3
348 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
Comment Utility
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 119

Accepted Solution

by:
Rey Obrero earned 500 total points
Comment Utility
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
Comment Utility
Never existed in 2003 so didn't even know about that!!!! Thank you!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now