Thanks for your interest. I have the following tables: Jobs, Estimates,Line, and about 20 tables of different lines of products. I have not set a primarily key to any tables. The Jobs table has only one field [job], Line table lists all available lines with only one field [line]and the estimate table is to record the data entered in the estimate/subform estimate1 forms. I choose the estimate# as master/child link so that each line of data record contained the same number.
I also have another question, I use a DLookup for the price of a product from the product tables. I need an IF statement that makes it look at the "Line" entered on form Estimates before it does the DLookup on the subform Estimates1.
Any advise is greatly appreciated! Thanks again.
BTW I placed your code in the source property and it does not create a estimate #. Did I put it in the wrong place?