473,395 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to make a value list's rowsource to reflect records in a coluimn

I have a column in a table that currently only has one record. That column
is set to combo box. I want the user to be able to lookup values from the
column itself--the very same column--rather than a long list of values in
the rowsource. Then, if the value doesn't exist, the user could type it in,
and the next time that value is needed again it will be there in the list
without having to manually add that value to the rowsource. Is this
possible?
Jun 28 '06 #1
3 2411
That's okay, I just used the lookup wizard (for a change) and that set it up
for me. Thanks anyway.

Rich

"Richard Hollenbeck" <ri****************@verizon.net> wrote in message
news:8izog.6099$il.2861@trnddc03...
I have a column in a table that currently only has one record. That column
is set to combo box. I want the user to be able to lookup values from the
column itself--the very same column--rather than a long list of values in
the rowsource. Then, if the value doesn't exist, the user could type it
in, and the next time that value is needed again it will be there in the
list without having to manually add that value to the rowsource. Is this
possible?

Jun 29 '06 #2
Try setting the RowSoruce to:
SELECT DISTINCT Col1
FROM Table1
WHERE Col1 Is Not Null
ORDER BY Col1;
where Col1 is the field the combo is bound to.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Richard Hollenbeck" <ri****************@verizon.net> wrote in message
news:8izog.6099$il.2861@trnddc03...
I have a column in a table that currently only has one record. That column
is set to combo box. I want the user to be able to lookup values from the
column itself--the very same column--rather than a long list of values in
the rowsource. Then, if the value doesn't exist, the user could type it
in, and the next time that value is needed again it will be there in the
list without having to manually add that value to the rowsource. Is this
possible?

Jun 29 '06 #3

"Richard Hollenbeck" <ri****************@verizon.net> wrote in message
news:8izog.6099$il.2861@trnddc03...
I have a column in a table that currently only has one record. That column
is set to combo box. I want the user to be able to lookup values from the
column itself--the very same column--rather than a long list of values in
the rowsource. Then, if the value doesn't exist, the user could type it
in, and the next time that value is needed again it will be there in the
list without having to manually add that value to the rowsource. Is this
possible?


I also am not sure what you mean by "a long list of values in the
rowsource," as a Row Source should only contain values from which the user
should select.

It seems to me that you may be describing the case where the Row Source of a
Combo Box may well be a Query against the same Table to which the Combo Box
is bound, thus listing only the values already used for that Field, but not
_limiting_ the user... so the user can enter a new value, if needed. Such a
Query would have its Unique Values property set, so that any value would
only be listed once, no matter in how many records it actually appears. I
have often used this approach with good results.

Larry Linson
Microsoft Access MVP
Jun 29 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave N | last post by:
I have a combo box that displays the names of all the users in my "Users" table. I set the RowSource to a Query from the "User" and "Project" tables. I can select any name from the list and that...
1
by: Jonny | last post by:
Hello, Firstly, I fill in a form for each record, which contains things like name, date from, date to etc. I have a list form in my database, which when opened displays certain information...
9
by: Megan | last post by:
Hi- I'm creating a database of music bands with their cds and songs. I'm trying to program an SQL statement so that I can enter a string of text in a textbox, press the 'Enter' key, and have...
4
by: Martyn Fewtrell | last post by:
I want to update a database record with a number of fields - doesn't sound to difficult at this stage! I have a system to select the correct record from the database and load the data into a...
3
by: colleen1980 | last post by:
There are two continuous subforms in main form. All are linked with ticketNum. When user comes to subform2. I need that Field3 of subform2 will automatically filled with field2 (field2 is a...
4
by: Torilyn73 | last post by:
I have a combo box set up off a query. I want the default value to be the column heading so I don't have to put a label over it. So far I haven't been able to figure this out. Can anyone tell me if...
4
by: Vincent | last post by:
I have a list box that is bound to a table with many records. I have a select all button that when clicked, obviously, selects all of the items in the list box. However, it takes a fairly long...
1
by: troy_lee | last post by:
I have a form (Form A) with a list box. Underneath the list box is a command button that minimizes Form A and opens up Form B. When the user is done with Form B, its exit button selects the...
22
by: AccessBeetle | last post by:
Private Sub Form_Open(Cancel As Integer) Combo34.SetFocus If DLookup("", "RadioLog_tblValUsers", "= '" & !! & "'") = "mngr" Then If DLookup("", "RadioLog_tblValUsers", "= '" & !! & "'") = 1...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.