Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Drop down box not showing all columns

Posted on 2013-12-06
3
Medium Priority
?
357 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

604 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