Hi there,
Column names for the recordset should be unique, and unfortunately, you can't use the Table name prefix in the Recordset syntax as you found out. What you can do is alias your column names, and use that alias to retrieve the value:
SELECT Customer.Name AS CustomerName, Vendor.Name AS VendorName, Bla bla bla
Now, in your recordset, you can use CustomerName and VendorName like this:
RS.Fields("Customername").Value
RS.Fields("Vendorname").value
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|