J
John Tempest
After nearly two years of trying to find the solution to why I was getting
an error message "The text you entered isn't an item in the list." when the
lookup list in a combo box definitely did have the item in the list, I
finally found this Knowledge Base article 824189 which looks as if it first
appeared on the 28th August 2003.
The problem appears to be that if SQL Server Compatible Syntax (ANSI-92) is
checked in the Options//Tables/Queries dialog for the database, then Access
2002/2003 does not generate the appropriate SQL syntax for the RowSource
property. You manually have to enter the word DISTINCT after the SELECT
word. The problem did not arise in Access 2000 or earlier versions.
I have two questions:
1. Does anyone know if Microsoft are working on a fix for the problem that
does not require this manual intervention?
2. What are the disadvantages of not using the SQL Server Compatible Syntax?
There are some advantages of using SQL that I am aware of: the statements
are easily modifiable; and additional query "tables" do not have to be set
up on top of the original tables for additional selection or sorting
criteria. Also, possibly in more complex situations SQL can be used in
macros or modules as event procedures.
NB. The heading of the article uses the word "may", indicating that this
problem possibly does not always arise in the same circumstances. Are there
any clues as to why this may be so?
Perhaps one of the Professionals can enlighten us?
John Tempest
an error message "The text you entered isn't an item in the list." when the
lookup list in a combo box definitely did have the item in the list, I
finally found this Knowledge Base article 824189 which looks as if it first
appeared on the 28th August 2003.
The problem appears to be that if SQL Server Compatible Syntax (ANSI-92) is
checked in the Options//Tables/Queries dialog for the database, then Access
2002/2003 does not generate the appropriate SQL syntax for the RowSource
property. You manually have to enter the word DISTINCT after the SELECT
word. The problem did not arise in Access 2000 or earlier versions.
I have two questions:
1. Does anyone know if Microsoft are working on a fix for the problem that
does not require this manual intervention?
2. What are the disadvantages of not using the SQL Server Compatible Syntax?
There are some advantages of using SQL that I am aware of: the statements
are easily modifiable; and additional query "tables" do not have to be set
up on top of the original tables for additional selection or sorting
criteria. Also, possibly in more complex situations SQL can be used in
macros or modules as event procedures.
NB. The heading of the article uses the word "may", indicating that this
problem possibly does not always arise in the same circumstances. Are there
any clues as to why this may be so?
Perhaps one of the Professionals can enlighten us?
John Tempest