Hi -
In my A2K database, I have a form with 2 Unbound Comboboxes, both of which
open up forms to a particular record. One of these comboboxes works
perfectly. For some reason the 2nd one WILL NOT autofill. If I enter a
number to lookup by typing it in, it ALWAYS says it's not in the list (Error
2237) - but if I select the item, it works fine. I only have 1 field in this
combobox - the SampleID. It is set up with the following properties:
Not In List=YES
Auto Expand=YES
Column Count=1
Bound Column=1
Row Source Type=Table/Query
Row Source=SELECT DISTINCT [tblSamples].[SampleID] FROM tblSamples ORDER BY
[tblSamples].[SampleID];
(I have also tried with multiple fields, but the bound column was always 1).
I have tried the following:
1) removing the combobox and putting on a fresh one, running repair, making
an entire 2nd form from scratch, etc.
2) making the NOT IN LIST property=NO, which will allow me to enter an
item - but if it's not a valid SampleID, I get an error msg when it tries to
open it up (and it doesn't auto expand).
3) Coding "cboSampleRef.Autoexpand=true" in the GotFocus Event.
Eventually the list of SampleID's is going to get rather lengthy, so the
AuotExpand feature is necessary....scrolling wouldn't work.
Is there some unwritten rule that you can only have ONE of this type of
combobox per form? Am I missing some obvious step? (I do these all the
time....)
Someone, PLEEEEEEZ, have a solution ......
Thanks!
Andi Plotsky 2 6358
DBQueen wrote: Hi -
In my A2K database, I have a form with 2 Unbound Comboboxes, both of which open up forms to a particular record. One of these comboboxes works perfectly. For some reason the 2nd one WILL NOT autofill. If I enter a number to lookup by typing it in, it ALWAYS says it's not in the list (Error 2237) - but if I select the item, it works fine. I only have 1 field in this combobox - the SampleID. It is set up with the following properties:
Not In List=YES Auto Expand=YES Column Count=1 Bound Column=1 Row Source Type=Table/Query Row Source=SELECT DISTINCT [tblSamples].[SampleID] FROM tblSamples ORDER BY [tblSamples].[SampleID];
(I have also tried with multiple fields, but the bound column was always 1).
I have tried the following: 1) removing the combobox and putting on a fresh one, running repair, making an entire 2nd form from scratch, etc. 2) making the NOT IN LIST property=NO, which will allow me to enter an item - but if it's not a valid SampleID, I get an error msg when it tries to open it up (and it doesn't auto expand). 3) Coding "cboSampleRef.Autoexpand=true" in the GotFocus Event.
Eventually the list of SampleID's is going to get rather lengthy, so the AuotExpand feature is necessary....scrolling wouldn't work. Is there some unwritten rule that you can only have ONE of this type of combobox per form? Am I missing some obvious step? (I do these all the time....)
On Not In List should be the name of a function or a macro, not "Yes."
Limit To List should be set to "Yes."
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
DBQueen wrote: Hi -
In my A2K database, I have a form with 2 Unbound Comboboxes, both of which open up forms to a particular record. One of these comboboxes works perfectly. For some reason the 2nd one WILL NOT autofill. If I enter a number to lookup by typing it in, it ALWAYS says it's not in the list (Error 2237) - but if I select the item, it works fine. I only have 1 field in this combobox - the SampleID. It is set up with the following properties:
Not In List=YES Auto Expand=YES Column Count=1 Bound Column=1 Row Source Type=Table/Query Row Source=SELECT DISTINCT [tblSamples].[SampleID] FROM tblSamples ORDER BY [tblSamples].[SampleID];
(I have also tried with multiple fields, but the bound column was always 1).
I have tried the following: 1) removing the combobox and putting on a fresh one, running repair, making an entire 2nd form from scratch, etc. 2) making the NOT IN LIST property=NO, which will allow me to enter an item - but if it's not a valid SampleID, I get an error msg when it tries to open it up (and it doesn't auto expand). 3) Coding "cboSampleRef.Autoexpand=true" in the GotFocus Event.
Eventually the list of SampleID's is going to get rather lengthy, so the AuotExpand feature is necessary....scrolling wouldn't work. Is there some unwritten rule that you can only have ONE of this type of combobox per form? Am I missing some obvious step? (I do these all the time....)
Someone, PLEEEEEEZ, have a solution ......
Thanks!
Andi Plotsky
It turns out that the Null value in the combobox causes the problem
with the autofill. It explains why the combobox worked before but
stopped working once the Null value was suddenly in the table. I added
' WHERE tblSamples.SampleID IS NOT NULL' after 'FROM tblSamples' and
the autofill started working again. It fixed the problem for both A97
and A2K (I didn't try later versions).
James A. Fortune This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: David Savageau |
last post by:
Can anyone help with the following problem? The solution will likely
be elementary to many members of this newsgroup, but, Duh! I've been
struggling to find it all day.
On an Access 2000 form...
|
by: Andi Plotsky |
last post by:
Hi - I sent this request last week, but didn't get an answer to my problem -
let's try again:
In my A2K database, I have a form with 2 Unbound Comboboxes, both of which
open up forms to a...
|
by: Jax |
last post by:
I am using a class that inherits from the
DataGridTextBoxColumn.
It adds a combo box into the column where it displays a
selection of choices.
The problem I have is that when this comboBox loses...
|
by: TT (Tom Tempelaere) |
last post by:
Hay there,
I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one
(I hope .NET 2.0 supplies one). I based it on this article:...
|
by: tupolev |
last post by:
Hi,
I already post this item but now I know whats wrong: I want to allow the
user to edit the items in a combobox. The problem is that the textchange
event works just one time (for the first...
|
by: dbuchanan |
last post by:
ComboBox databindng Problem
== How the ComboBox is setup and used:
My comboBox is populated by a lookup table. The ValueMember is the
lookup table's Id and the DisplayMember is the text from a...
|
by: VK |
last post by:
I'm looking for autoexpand <select> list onfocus and collapse it back
onselect/onblur (the list is select-one type)
I know it is not possible directly, but I've seen here a hack by
changing...
|
by: Ture Bergstrøm |
last post by:
In my database (Access2003 SP3) I have a combo box, which has a query as row
source. This query gets its values from a table with the fields id and
field1. Field1 is shown in the box, the key...
|
by: tbeers |
last post by:
Quick questions
Is there a way to create an autoexpand property in a text or memo field?
Thanks
Tomb
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
| |