Quote:
Originally Posted by mgstlucia
I have a form that is an Order Form. The subform is where the user would enter the item they want to order. The subform is in datasheet view. ...
Only one line is showing right now. I want a new line to appear when the user hits enter in the Total Price field so they can enter another item....
Also the Unit Price which is automatically filled from the combobox is displaying 4.5 even though the query it is coming from displays $4.50. I couldn't find anything on this one either.
One more question is where should I look to find out how to update an Orders table after the order is submitted so that I can track all the orders?
Hi. The form style (datasheet, continuous forms and so on) is not what is stopping your form from adding records. There are some checks you need to make to rule out particular causes. First, make sure that in both the subform and main form properties Allow Additions is set to Yes. Second, check the recordsource property of your subform. If this is a query, run the query itself from the database Queries tab and check that the new record indicator (the asterisk in the record indicators at the end of the table) is not greyed out. If it is, the query's table joins or structure is incorrect.
It is also possible that the relationship between the table on which the main form is based and the table on which the subform is based is not correctly set. I mention this because of your last question on updating the orders table; if the table relationships are set correctly and you are entering order details on the main form with order lines on the subform the updating of these records should be automatic. You should not have to be updating anything after the order is made (except for deliberate changes in response to changes to an order).
On the unit price problem set the format property of the control to currency and decimal places to 2.
Let us know how you get on with your recordsource and form properties checks.
-Stewart