Solved

Drop down box not showing all columns

Posted on 2013-12-06
3
351 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Programmer 14 51
Display label on subreport when NO DATA on subreport 4 23
FrontEnd tools to create web database application 7 62
DSN-LESS connection to MS Access database 6 32
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…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
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…

803 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