Solved

Access field data entry options

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Dynamically Reorder List Box 4 38
Access report groups with sums 5 26
Access 2003 query lost it's only join 7 27
Run SQL Server Proc from Access 11 30
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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