How to change contents of combo box?

L

LAS

I have this code in a script. gs_sql, when cut and pasted to a query,
returns the expected rows. But after this code is executed, the contents of
the combo box are empty. What am I doing wrong?

cboStudent_ID.RowSource = gs_sql
cboStudent_ID.Requery
 
D

Douglas J. Steele

When you say "empty", do you mean that there appears to be data in the combo
box (i.e.: the right-hand scroll bar is active), but you cannot actually see
the values?

What version of Access are you using? What's the actual content of gs_sql?
(if you're using Access 2003 and you've got Format functions in your SQL,
you may need to apply the Access 2003 post-Service Pack 3 hotfix
http://support.microsoft.com/kb/945674 )
 
L

LAS

No, I mean that only one row's worth of white space appears below the empty
input field instead of the normal row per item. No arrow.
 
L

LAS

I have found the problem. It's a "DUH" thing. I was selecting * instead of
the exact columns I needed for the dropdown.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top