![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I wish I could get my head around access.Probably need to take a formal course. Anyway, I have an A-2007 database of plant information for several sites that works OK but could be better. Basically we go to sites and document the vegetation found there. I enter data into Plant_list table from a form called Data_Entry_Form that loads location and date from dropdowns, and a subform that loads Family from a dropdown, Genus and species from another dropdown, and common names as text, and other information such as whether or not a sample was collected as check boxes. It occurred to me that I spend too much time looking up Family and common names that could autofill. The master table that I pull the Genus/species names from has common names in it anyway, and I can add one for Family. But after a day of googling and playing with DLookup I can't get anything but errors. What I'd like to do is when I chose the Name Authority from the form's dropdown, to have it autofill the common name data into Plant_List table. It should pull from the field Common Name in the table Name_Authority and load that into Common Name in the Plant_List table based on the Genus and species name I chose (which is actually linked Name_Authority in Plant_List to ID in the Names table. I used the dropdown wizard). I thought perhaps having the saem name might confuse things so I made another copy and changed the name in one table to Names_Authorities but to no avail. It must be something simple I'm doing wrong but I sure can't find it. Thanks for your time, even if to say use what you have and move on with your life! -Tom. |
#3
| |||
| |||
|
|
On Thu, 2 Dec 2010 18:36:20 -0500, "TimK" <timkozz (AT) cfl (DOT) rr.com> wrote: Hi TimK, It does indeed sound like you're on the wrong track. Long before you worry about data entry forms, you have to worry about the database design. This is the hardest part to get right for a beginner, and without a correct db design all you build on top of it is eh <insert eufemism here>. If you have a dropdown to choose the scientific name from, and you also want to show the common name, you can add that as an extra column in the dropdown (let's call it myPlantsDropDown): select PlantID, ScienceName, CommonName from tblPlants The dropdown will have 3 columns, and the columnwidth property would be set to 0;1;1. If you want to display the CommonName in another control, you can set that control's ControlSource to: =myPlantsDropDown.Column(2) This will pick up the value at index=2 (3rd column) and display it. I hope this helps a bit. Consider hiring a seasoned developer as your buddy. Hi all, I wish I could get my head around access.Probably need to take a formal course. Anyway, I have an A-2007 database of plant information for several sites that works OK but could be better. Basically we go to sites and document the vegetation found there. I enter data into Plant_list table from a form called Data_Entry_Form that loads location and date from dropdowns, and a subform that loads Family from a dropdown, Genus and species from another dropdown, and common names as text, and other information such as whether or not a sample was collected as check boxes. It occurred to me that I spend too much time looking up Family and common names that could autofill. The master table that I pull the Genus/species names from has common names in it anyway, and I can add one for Family. But after a day of googling and playing with DLookup I can't get anything but errors. What I'd like to do is when I chose the Name Authority from the form's dropdown, to have it autofill the common name data into Plant_List table. It should pull from the field Common Name in the table Name_Authority and load that into Common Name in the Plant_List table based on the Genus and species name I chose (which is actually linked Name_Authority in Plant_List to ID in the Names table. I used the dropdown wizard). I thought perhaps having the saem name might confuse things so I made another copy and changed the name in one table to Names_Authorities but to no avail. It must be something simple I'm doing wrong but I sure can't find it. Thanks for your time, even if to say use what you have and move on with your life! -Tom. Microsoft Access MVP |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |