This thread might help:
http://groups-beta.google.com/group/microsoft.public.infopath/browse_frm/thread/
6a01636001bd5d1f/3f803a15a5c32c22?q=infopath+%22trying+to+get+previous%22&rnum=1
&hl=en#3f803a15a5c32c22

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Hello everybody!
Does anybody know, if it is possible to have more than one database
table to get results if you have 2 views: one with a repeating table
and a detail button and the second with the details from the
repeating table?
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsd
kMasterDetailForms_HV01083845.asp)
If I use this sample for only one of my tables of my database then the
details are shown. But if I add a second table then there are no
details shown.
Does anybody know something about it? I appreciate any help!!