Solved

Drop down box not showing all columns

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

Accepted Solution

by:
Rey Obrero 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

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
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…
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 …

911 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

24 Experts available now in Live!

Get 1:1 Help Now