Update Auto Number when data is entered on subform

M

Mya48

I have a main form that has an auto number and department name. On this form
there is a subform where you can pick the products you would like to order.

My problem is that if someone skips the department name and goes straight to
the subform to enter data, then goes back and selects their department, their
order details dissapear and they have to re-enter it all over again but the
order details get populated anyways into the subform table without tying it
to this order.

I would like for the form to assign the Auto Number if someone picks their
department name right away or if they go directly to the subform and enter
their order details.

Thanks
 
R

Rick Brandt

I have a main form that has an auto number and department name. On this
form there is a subform where you can pick the products you would like
to order.

My problem is that if someone skips the department name and goes
straight to the subform to enter data, then goes back and selects their
department, their order details dissapear and they have to re-enter it
all over again but the order details get populated anyways into the
subform table without tying it to this order.

I would like for the form to assign the Auto Number if someone picks
their department name right away or if they go directly to the subform
and enter their order details.

Thanks

I would generally lock or hide the subform until the BeforeInsert event
of the main form. Then they are forced to make an entry on the main form
before they can make a subform entry.

Barring that I just tell them "don't do it that way you moron".
 
M

Mya48

How would I hide the subform named Placed_Orders_Subform until the control
named Section is populated if the control is a drop down list?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top