Solved

Access field data entry options

Posted on 2011-03-17
3
267 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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

749 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