E
Ed
I experience very strange problem in Access 2003.
If I try to run quite a simple query from CurrentDb.Execute command it will
crash my database. From another side it will run perfectly OK if I would
create a Query1 from database window and run it from there. I am pretty sure
this is a BUG in MS Access. I tried run this query on multiple computers with
MS Access 2003 and MS Access 2002 installed and all of them repeated same
database crash behaviour. I tried to call MS support to get technical support
but they want $390.00 just to start troubleshot this issue. Are they gone
crazy? I do not want to risk this huge amount of money and my time just to
prove them wrong. From another side it is a small chance that I do something
wrong and if so I would like to know that exactly is incorrect in this query.
I would greatly appreciate anyone help in this issue.
Next is details to recreated my mdb tables and queries. Also I can email mdb
file itself ~250Kb in size.
The query SQL string as following:
INSERT INTO [Trade Packages] ( PackageID, TradeID, Description )
SELECT [Package Pad Trade List].PackageID, [Package Pad Trade List].TradeID,
[Package Pad Trade List].Description
FROM [Package Pad Trade List] LEFT JOIN [Trade Packages] ON ([Package Pad
Trade List].PackageID = [Trade Packages].PackageID) AND ([Package Pad Trade
List].TradeID = [Trade Packages].TradeID)
WHERE ((([Trade Packages].PackageID) Is Null) AND (([Package Pad Trade
List].IndustryID)=5));
The [Package Pad Trade List] sub query has following SQL string:
SELECT 1 AS PackageID, Trades.IndustryID, Trades.GroupID, Trades.ActivityID,
Trades.TradeID, Trades.Description
FROM Trades;
The tables’ fields and Indexes as following:
Table: Trade Packages
Columns
Name Type Size
PackageID Long Integer 4
TradeID Long Integer 4
Description Text 255
Table Indexes
Name Number of Fields
PackageID 1
Fields:
PackageID Ascending
TradeID 1
Fields:
TradeID Ascending
PrimaryKey 2
Fields:
PackageID Ascending
TradeID Ascending
Table: Trades
Columns
Name Type Size
IndustryID Long Integer 4
TradeID Long Integer 4
Description Text 255
Table Indexes
Name Number of Fields
IndustryID 1
Fields:
IndustryID Ascending
TradeID 1
Fields:
TradeID Ascending
PrimaryKey 4
Fields:
IndustryID Ascending
TradeID Ascending
If I try to run quite a simple query from CurrentDb.Execute command it will
crash my database. From another side it will run perfectly OK if I would
create a Query1 from database window and run it from there. I am pretty sure
this is a BUG in MS Access. I tried run this query on multiple computers with
MS Access 2003 and MS Access 2002 installed and all of them repeated same
database crash behaviour. I tried to call MS support to get technical support
but they want $390.00 just to start troubleshot this issue. Are they gone
crazy? I do not want to risk this huge amount of money and my time just to
prove them wrong. From another side it is a small chance that I do something
wrong and if so I would like to know that exactly is incorrect in this query.
I would greatly appreciate anyone help in this issue.
Next is details to recreated my mdb tables and queries. Also I can email mdb
file itself ~250Kb in size.
The query SQL string as following:
INSERT INTO [Trade Packages] ( PackageID, TradeID, Description )
SELECT [Package Pad Trade List].PackageID, [Package Pad Trade List].TradeID,
[Package Pad Trade List].Description
FROM [Package Pad Trade List] LEFT JOIN [Trade Packages] ON ([Package Pad
Trade List].PackageID = [Trade Packages].PackageID) AND ([Package Pad Trade
List].TradeID = [Trade Packages].TradeID)
WHERE ((([Trade Packages].PackageID) Is Null) AND (([Package Pad Trade
List].IndustryID)=5));
The [Package Pad Trade List] sub query has following SQL string:
SELECT 1 AS PackageID, Trades.IndustryID, Trades.GroupID, Trades.ActivityID,
Trades.TradeID, Trades.Description
FROM Trades;
The tables’ fields and Indexes as following:
Table: Trade Packages
Columns
Name Type Size
PackageID Long Integer 4
TradeID Long Integer 4
Description Text 255
Table Indexes
Name Number of Fields
PackageID 1
Fields:
PackageID Ascending
TradeID 1
Fields:
TradeID Ascending
PrimaryKey 2
Fields:
PackageID Ascending
TradeID Ascending
Table: Trades
Columns
Name Type Size
IndustryID Long Integer 4
TradeID Long Integer 4
Description Text 255
Table Indexes
Name Number of Fields
IndustryID 1
Fields:
IndustryID Ascending
TradeID 1
Fields:
TradeID Ascending
PrimaryKey 4
Fields:
IndustryID Ascending
TradeID Ascending