I have a complex query that invloves selecting a value from another query in a format like:
This works fine in Access, but when I try the same code in VB.Net, it does not like the subquery in the Select statement. Is there a syntax difference with VB.Net?
(For those who might think that this is an odd way to put together a query when I could just use a join, I've simplified the query above, it actually contains about twenty such references in Access, many of which contain null values.)
VB.NET:
SELECT t_object_1.Name, (SELECT t_objectproperties.Value FROM t_objectproperties WHERE (((t_objectproperties.Object_ID)=[t_object_1].[object_id]) AND ((t_objectproperties.Property)="Latency"))) AS Latency
FROM t_object AS t_object_1 INNER JOIN t_object ON t_object_1.ParentID = t_object.Object_ID
WHERE (((t_object.Object_Type)="object") AND ((t_object.Stereotype)="RdcApplication") AND ((t_object_1.Stereotype)="HFQueuingPort"));
This works fine in Access, but when I try the same code in VB.Net, it does not like the subquery in the Select statement. Is there a syntax difference with VB.Net?
(For those who might think that this is an odd way to put together a query when I could just use a join, I've simplified the query above, it actually contains about twenty such references in Access, many of which contain null values.)