A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Assinging a value to a drop-down box



 
 
Thread Tools Display Modes
  #1  
Old July 30th, 2009, 06:41 PM posted to microsoft.public.access.reports
Joseph Greenberg
external usenet poster
 
Posts: 57
Default Assinging a value to a drop-down box

I have a drop-down box which is populated at form load by a query from a
look-up table in the database (the query captures a number and the
corresponding text, and only the text is shown). How can I programatically
(from a button click) tell the combo box to "now pick this selection from
the list", based on the text value? So there are 15 distinct (and only 15)
possible values - say flavors. If there is a database value for that field
it will pick it up for the combo box. But if there isn't, I want to click a
button that says "assign this one the value of Chocolate" (or whatever
flavor is appropriate based on other criteria).


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.