A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

LimitToList Question



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2009, 01:50 PM posted to microsoft.public.access.tablesdbdesign
meangene
external usenet poster
 
Posts: 29
Default LimitToList Question

Have a table where a field is pulling Reason Codes from our ERP but was not
marked "Limit To List" in the Lookup tab when application was initially
created. After 6 months or so now a need has arisen to limit what populates
this field to just those Reason Codes, so I have selected "Yes" in Limit To
List; however, when testing I notice that the field wills till accept any
value. Could this be because there already exist hundreds of records with
non-list values already populated?
  #2  
Old June 4th, 2009, 03:37 PM posted to microsoft.public.access.tablesdbdesign
Noëlla Gabriël
external usenet poster
 
Posts: 79
Default LimitToList Question

HI,

can you tell us what's stated in the "row source type" and "row source"
properties of this field?
--
Kind regards
Noëlla


"meangene" wrote:

Have a table where a field is pulling Reason Codes from our ERP but was not
marked "Limit To List" in the Lookup tab when application was initially
created. After 6 months or so now a need has arisen to limit what populates
this field to just those Reason Codes, so I have selected "Yes" in Limit To
List; however, when testing I notice that the field wills till accept any
value. Could this be because there already exist hundreds of records with
non-list values already populated?

  #3  
Old June 4th, 2009, 03:50 PM posted to microsoft.public.access.tablesdbdesign
meangene
external usenet poster
 
Posts: 29
Default LimitToList Question

row source type: Table/Query
row source: dbo_RA_09ReturnReasonCodeMaster (table from our ERP)

"Noëlla Gabriël" wrote:

HI,

can you tell us what's stated in the "row source type" and "row source"
properties of this field?
--
Kind regards
Noëlla


"meangene" wrote:

Have a table where a field is pulling Reason Codes from our ERP but was not
marked "Limit To List" in the Lookup tab when application was initially
created. After 6 months or so now a need has arisen to limit what populates
this field to just those Reason Codes, so I have selected "Yes" in Limit To
List; however, when testing I notice that the field wills till accept any
value. Could this be because there already exist hundreds of records with
non-list values already populated?

  #4  
Old June 4th, 2009, 04:08 PM posted to microsoft.public.access.tablesdbdesign
Noëlla Gabriël
external usenet poster
 
Posts: 79
Default LimitToList Question

Normally then setting the "limit to list" property in a combo box or listbox
ensures that you can only enter list values. However this is only available
in forms, not in table design. Normally, in Access you never enter the data
directly into the tables, the normal way to proceed is to create a form,
based on the table (or a query) and enter the data there.
--
Kind regards
Noëlla


"meangene" wrote:

row source type: Table/Query
row source: dbo_RA_09ReturnReasonCodeMaster (table from our ERP)

"Noëlla Gabriël" wrote:


  #5  
Old June 4th, 2009, 11:34 PM posted to microsoft.public.access.tablesdbdesign
Gina Whipp
external usenet poster
 
Posts: 3,500
Default LimitToList Question

meangene,

Limit To List is kinda quirky. If you are basing your list on the field in
the table then technically there is no Limit To List. You would need to
base the combo box on a table with a finite number of items. HOWEVER, this
will cause a problem with the items already in the field which will produce
an error because they are not in the list.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"meangene" wrote in message
...
Have a table where a field is pulling Reason Codes from our ERP but was
not
marked "Limit To List" in the Lookup tab when application was initially
created. After 6 months or so now a need has arisen to limit what
populates
this field to just those Reason Codes, so I have selected "Yes" in Limit
To
List; however, when testing I notice that the field wills till accept any
value. Could this be because there already exist hundreds of records with
non-list values already populated?



  #6  
Old June 5th, 2009, 12:00 AM posted to microsoft.public.access.tablesdbdesign
Clifford Bass[_2_]
external usenet poster
 
Posts: 1,295
Default LimitToList Question

Hi,

I think Limit To List only applies when actually changing the value in
existing records or when setting it in new records. Otherwise it recognizes
that there are pre-existing "invalid" values.

When testing, does it allow you to move out of the combo box, to
another control, after entering a NEW bad value?

Clifford Bass

"Gina Whipp" wrote:

meangene,

Limit To List is kinda quirky. If you are basing your list on the field in
the table then technically there is no Limit To List. You would need to
base the combo box on a table with a finite number of items. HOWEVER, this
will cause a problem with the items already in the field which will produce
an error because they are not in the list.

--
Gina Whipp

  #7  
Old June 5th, 2009, 01:02 PM posted to microsoft.public.access.tablesdbdesign
meangene
external usenet poster
 
Posts: 29
Default LimitToList Question

Thanks to everyone's feedback I was able to solve the issue. In addition to
having limittolist set to Yes in the fields Look Up tab, I also assigned it
to the fields property in the form. Now, although we have hundereds of
preexisting "invalid" entries, new records will only allow values from the
ReasonCode field of the ReturnReasonCodeMaster table. We are working to
clean-up the older entries. Thanks again!

"Clifford Bass" wrote:

Hi,

I think Limit To List only applies when actually changing the value in
existing records or when setting it in new records. Otherwise it recognizes
that there are pre-existing "invalid" values.

When testing, does it allow you to move out of the combo box, to
another control, after entering a NEW bad value?

Clifford Bass

"Gina Whipp" wrote:

meangene,

Limit To List is kinda quirky. If you are basing your list on the field in
the table then technically there is no Limit To List. You would need to
base the combo box on a table with a finite number of items. HOWEVER, this
will cause a problem with the items already in the field which will produce
an error because they are not in the list.

--
Gina Whipp

  #8  
Old June 5th, 2009, 05:31 PM posted to microsoft.public.access.tablesdbdesign
Clifford Bass[_2_]
external usenet poster
 
Posts: 1,295
Default LimitToList Question

Hi,

You are welcome. Yes, as you found out, the Limit To List setting on a
control on a form is separate from the Limit To List set in the table. In
the table, it only impacts the direct entry into table. However, once set
there, new controls created for that field, I think only when using a wizard,
will start with the control's settings matching the table's settings. Note
that the only real ways to enforce valid values in the table is though
setting it up in referential integrity (relationships) that are enforced or
through the Validation Rule property.

Clifford Bass

"meangene" wrote:

Thanks to everyone's feedback I was able to solve the issue. In addition to
having limittolist set to Yes in the fields Look Up tab, I also assigned it
to the fields property in the form. Now, although we have hundereds of
preexisting "invalid" entries, new records will only allow values from the
ReasonCode field of the ReturnReasonCodeMaster table. We are working to
clean-up the older entries. Thanks again!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.