Solved

Access field data entry options

Posted on 2011-03-17
3
243 Views
Last Modified: 2012-05-11
Maybe this is more complicated then I would hope, but.  I create tables and queries in Access all the time, but have never had to do more than simple data sheets. I would like to have a field on a form that could be populated via simple data entry from the keyboard with an option to fill the field with a selection from pop up-lookup list based on a predefined query. I have some predefined items, but I want the user to have the option of entering their own text item. The item they enter does not have to be in or added to the pop up-look up list.
0
Comment
Question by:wlamore
3 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 250 total points
ID: 35158082
Not sure, but I think all you need to do is create a form from your queries.

Can you clearly explain, with a specific example, what you mean by:
<fill the field with a selection from pop up-lookup list based on a predefined query.>
My guess is this will be selecting a value from a combobox...
...but we need to know a bit more about this " predefined query", as this would simply be an SQL statement for the rowsource of the combobox.
0
 

Author Comment

by:wlamore
ID: 35158140
Yea, I think a combo box would work fine. The items in the combo box are from a query that is based on an entry in a previous field in the form. IE. If the user selects floors in the "Type" field, Then I only want item that are categorized as "Floor" items to appear in the combo box. So I should be able to fill the combo box with the results of a query using the data entered in that previous field, in the same form,correct? And a combo box field allows for direct text entry, correct?
0
 
LVL 9

Assisted Solution

by:McOz
McOz earned 250 total points
ID: 35158192
wlamore, you can do this by setting the lookup properties for the field which the drop-down list is related to.

With the table that contains the field you want the drop-down to populate, go into design view.
Click on the field you want to populate with a drop-down, and click on the Lookup tab
Change "Text Box" to "Combo Box"
Set the properties as follows:

Row Source: SELECT ID FROM YourTable (change to whatever your query is that returns the list of options)
Limit to List: No (allows other values)

Then, if you make a form based on the table, this field will have a drop down in the form which allows custom entries as well.

Be aware that custom entries which do not match the data type will still not be allowed - if you want to be able to enter text, the field must have a text datatype.

Cheers

0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

863 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

20 Experts available now in Live!

Get 1:1 Help Now