thanx ansentry, I am still working on it. Its giving me so much trouble on this line, intCount = DCount("*", "tmakInvoiceDetails"),. I don't understand where the tmakInvoiceDetails is coming from. If you could shed some light on it. I know I am bugging you a lot :( sorry
thanx again