Thanks Tony,
Yes, cardcontextdesc is a memo field... I tried this as you suggested:
var RSet = db.ExecuteSQL("SELECT card.cardname, cardcontext.cardno, cardcontext.cardcontextdesc FROM card, cardcontext WHERE card.cardno = " + randomcard + " and card.cardno = cardcontext.cardno;")
meaningtext2.ReplaceSelection(RSet.cardname + ": " + RSet.cardcontextdesc)
and it still doesn't work!
However, splitting the query into 2 does work:
var Rdesc = db.ExecuteSQL("SELECT cardno,cardcontextdesc FROM cardcontext WHERE cardno = " + randomcard + ";")
var Rcard = db.ExecuteSQL("SELECT cardname FROM card WHERE cardno = " + randomcard +";")
meaningtext2.ReplaceSelection(Rcard.cardname + ": " + Rdesc.cardcontextdesc)
Also using '*' in the first query works:
var Rdesc = db.ExecuteSQL("SELECT * FROM cardcontext WHERE cardno = " + randomcard + ";")
var Rcard = db.ExecuteSQL("SELECT cardname FROM card WHERE cardno = " + randomcard +";")
meaningtext2.ReplaceSelection(Rcard.cardname + ": " + Rdesc.cardcontextdesc)
Using '*' in the join query DOESN'T work:
var RSet = db.ExecuteSQL("SELECT * FROM card, cardcontext WHERE card.cardno = " + randomcard + " and card.cardno = cardcontext.cardno;")
meaningtext2.ReplaceSelection(RSet.cardname + ": " + RSet.cardcontextdesc)
So far only using 2 separate queries works
This is odd and a bit forboding as I'm looking forward to lots of complex SQL queries in my current publication...
Eek!
Melanie