I have a database form with 2 tables joined for the main datasource...i do an insert with:
function ApplyPayment(Invoice, PaymentID, AmountPaid, InvoiceRow)
{
XDocument.UI.Alert("Inv=" + Invoice + " PayID=" + PaymentID + " AP=" + AmountPaid + " IR=" + ...