Solved

Access field data entry options

Posted on 2011-03-17
3
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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 …

691 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