Because all of the fields in the result set have unique namesâthat is, you don't have something like:
SELECT orderDetails.
ID,
orderDetails.orderId,
orderDetails.ProductId,
orderDetails.UnitPrice,
products.ProductName,
products.
ID
FROM orderDetails
INNER JOIN products
ON orderDetails.ProductId = products.ProductId
âyou can simply use the field name:
Code:
txtName.text = rst!ProductName