×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

dropdown list with sections on a form

dropdown list with sections on a form

dropdown list with sections on a form

(OP)
Hi Folks

I have a combo box set up on a form that accesses a table with a field listing provinces and states.  How would I go about making it so that when I open the drop-down list on the form, the provinces are listed together under a header of "Canada" and and the states are under the header "United States", and the user cannot select the headers off the list.  Thanks in advance for any help.  

RE: dropdown list with sections on a form

Can't be done.

There is no way to have headers mixed in with the data. The only header is at the top.

If you have a field in your table that specifies whether it is a state or province, you could sort first by that field, and then by the actual state or province. This would give you all of the provinces together, and then all the states. I believe that is as close as you can get.

The other option is to have a combo box for provinces, and a combo box for states.

Jim Lunde
compugeeks@hotmail.com
CompuGEEKS
Custom Application Development

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close