BUG: Query Designer Generates Invalid SQL Statement (190113)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q190113 SYMPTOMS
Under certain conditions, the Query Designer may generate invalid SQL
statement if database is MDB file. When the statement is executed, VB
generates the error:
Syntax error in FROM clause
RESOLUTION
Manually remove the braces "{}" and "oj" from the "From" statement.
Code Example
Change the following statement
SELECT Products.ProductName, `Order Details`.Quantity
FROM { oj `Order Details` LEFT OUTER JOIN
Products ON `Order Details`.ProductID = Products.ProductID }
To the following:
SELECT Products.ProductName, `Order Details`.Quantity
FROM `Order Details` LEFT OUTER JOIN
Products ON `Order Details`.ProductID = Products.ProductID
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Major | Last Reviewed: | 10/23/2000 |
---|
Keywords: | kbbug KB190113 |
---|
|