Solved

default value of combo box

Posted on 2011-03-17
2
190 Views
Last Modified: 2012-06-21
Experts, I have the following rowsource for an unbound value list combobox:
-1;Yes;0;No
bound = 1
Column count = 2
widths = 0

I need it to default to No.
I have put =No ="No" = 0 but it does not default

What is the problem?  
thank you
0
Comment
Question by:pdvsa
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 35156882
in the load event of the form, set the default value

private sub form_load()

me.combo.value=me.combo.itemdata(1)

end sub
0
 

Author Comment

by:pdvsa
ID: 35156905
worked like a charm.  thank you...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

746 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

12 Experts available now in Live!

Get 1:1 Help Now