Well, it's doing it again. I'm trying it at 1:45am and it's still not recording into the detail table. I also noticed that it's not recording into the main table either if it's the same reference number. Is there a way to get around that feature? I am building a protected admin area for my client to be able to process phone and mail orders with the customers that are in the database already. I've got all the tax and shipping and discount fields work out. It's just this last bit that's causing problem. Also would it be better to put the "save in database" behaviors in my successful page rather than the same page that is authorizing payment? And probably best to put my "send receipt" in the successful page as well.