Hi,
you could do this with the SHAPE command in ADO. The method can be easily found by entering "XML" in the Access help (in my case Access 2007).
A nearly equal instruction can be found in the MSDN here:
http://msdn.microsoft.com/en-us/library/ms675843%28VS.85%29.aspxYou will find a Visual Basic example there which can also be used with ADO in VBA.
A "one-liner" example from the Access help:
Rs.Open "SHAPE {select stor_id, stor_name, state from stores} APPEND ({select stor_id, ord_num, ord_date, qty from sales} AS rsSales RELATE stor_id TO stor_id)", "Provider=MSDataShape;DSN=
pubs;UID=M
yUserId;PW
D=MyPasswo
rd;"
If you have a SQL Server backend database you can do SELECTs with "FOR XML Auto" for example (and a lot other XML methods).
Cheers,
Christian