If your sql user has access to the other db probably you can just address the other db by dbname. prefix...
That's what I had in mind
.
Thanks again beat, and I'm very impressed with CBsubs. Already tried AEC but I think I'm keeping this one, a very neat piece of work.