From: Mort on 23 Apr 2010 08:26 I am designing my second database, Access 2007. I need a drop-down list on a form which enters data into the table tblStats. I want a combo box and will type in three values, Complete;Incomplete;Pending. When one of these values is selected for the active record, that value should go to the field Status in the table tblStats. I can not figure out how to accomplish this. Please help Mortimer
From: Al Campagna on 23 Apr 2010 09:02 Mort, A combo control (like a text control) can be "bound" to a field in the table/query behind the form. Which means that any value entered into that control, when updated, will be written to that field in the table. Fields that are bound to the control are indicated in the control's ControlSource property. From what you've desciribed, you should be able to "bind" the combo control to the Status field in tblStats. Make sure Status is included in the query behind the form, and enter Status in the ControlSource for your combo. Set your combo's RowSourceType to Value List Enter "Complete"; "Incomplete"; "Pending" into the combo's RowSource -- hth Al Campagna Microsoft Access MVP 2007-2009 http://home.comcast.net/~cccsolutions/index.html "Find a job that you love... and you'll never work a day in your life." "Mort" <Mort(a)discussions.microsoft.com> wrote in message news:D968D908-5FF3-49FD-BB8A-E675AA9DD40C(a)microsoft.com... >I am designing my second database, Access 2007. > I need a drop-down list on a form which enters data into the table > tblStats. > I want a combo box and will type in three values, > Complete;Incomplete;Pending. When one of these values is selected for the > active record, that value should go to the field Status in the table > tblStats. > I can not figure out how to accomplish this. Please help > > Mortimer
From: BruceM via AccessMonster.com on 23 Apr 2010 09:06 Is the form bound to tblStats? If so, bind the combo box to the Status field. On the combo box Property Sheet you could make the combo box Row Source a Value List, then for the Row Source enter: Complete;Incomplete;Pending The combo box Bound Column and Column Count are both 1. Not sure why you specify typing a value into a combo box. You can do that, but typically the idea with a combo box is that you select a value. If Auto Expand is set to Yes you should be able to start typing, and a word will appear when what you have typed matches an entry on the list. In this case, typing "C" should display the word "Complete", after which you can press Tab or Enter, or click elsewhere on the form. I don't have Access 2007 in front of me, but I believe the procedure is at least similar to what I have written here. Mort wrote: >I am designing my second database, Access 2007. >I need a drop-down list on a form which enters data into the table tblStats. > I want a combo box and will type in three values, >Complete;Incomplete;Pending. When one of these values is selected for the >active record, that value should go to the field Status in the table tblStats. >I can not figure out how to accomplish this. Please help > >Mortimer -- Message posted via http://www.accessmonster.com
From: Jeff Boyce on 23 Apr 2010 13:46 Mort I've always heard that it is your SECOND application which is the most dangerous ... after you learn enough to finish the first ... Good luck! Regards Jeff Boyce Microsoft Access MVP -- Disclaimer: This author may have received products and services mentioned in this post. Mention and/or description of a product or service herein does not constitute endorsement thereof. Any code or pseudocode included in this post is offered "as is", with no guarantee as to suitability. You can thank the FTC of the USA for making this disclaimer possible/necessary. "Mort" <Mort(a)discussions.microsoft.com> wrote in message news:D968D908-5FF3-49FD-BB8A-E675AA9DD40C(a)microsoft.com... >I am designing my second database, Access 2007. > I need a drop-down list on a form which enters data into the table > tblStats. > I want a combo box and will type in three values, > Complete;Incomplete;Pending. When one of these values is selected for the > active record, that value should go to the field Status in the table > tblStats. > I can not figure out how to accomplish this. Please help > > Mortimer
From: Mort on 23 Apr 2010 14:46 Thank you. I can attest to that fact and am proceding very cautiously. The first was rather simple, four tables and I was given enough time so that I could understand what was being written about on the 1NF,2NF, and 3NF. Customers, Products, Orders, and Shipments tables (no partial shipments so Primary Keys and Joins were not to hard to figure out). This one is much more difficult - I am being approached to do it after my initial success. I have registered for Access training at a Microsoft certified training company for a three day instructor led class, but it is 7 weeks into the future. "Jeff Boyce" wrote: > Mort > > I've always heard that it is your SECOND application which is the most > dangerous ... after you learn enough to finish the first ... > > Good luck! > > Regards > > Jeff Boyce > Microsoft Access MVP > > -- > Disclaimer: This author may have received products and services mentioned > in this post. Mention and/or description of a product or service herein > does not constitute endorsement thereof. > > Any code or pseudocode included in this post is offered "as is", with no > guarantee as to suitability. > > You can thank the FTC of the USA for making this disclaimer > possible/necessary. > > "Mort" <Mort(a)discussions.microsoft.com> wrote in message > news:D968D908-5FF3-49FD-BB8A-E675AA9DD40C(a)microsoft.com... > >I am designing my second database, Access 2007. > > I need a drop-down list on a form which enters data into the table > > tblStats. > > I want a combo box and will type in three values, > > Complete;Incomplete;Pending. When one of these values is selected for the > > active record, that value should go to the field Status in the table > > tblStats. > > I can not figure out how to accomplish this. Please help > > > > Mortimer > > > . >
|
Next
|
Last
Pages: 1 2 Prev: Linking forms field and table field . Next: subforms and relationships getting #Name? error |