Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Allow Additions = No prevents data being displayed properly

Allow Additions = No prevents data being displayed properly

Allow Additions = No prevents data being displayed properly

I have a Customers form with a subform for completed orders.

Picking an order and clicking an Orders button opens an Order Details form that shows the order’s Products and Credits in separate subforms.

I want to prevent a user from accidentally changing the details so have set each subform’s Data properties to Allow Additions = No, same for Allow Deletions and Allow Edits. The Order Details display properly for orders that contain entries in Products and Credits but if either doesn’t I get errors in the calculation fields below, which pull data from the OrderSubtotal and CreditTotal summations in the footers of each subform, ie

= [sfmOrderDetailsSubform].[Form].[OrderSubtotal]
= [sfmCreditAmounts].[Form].[CreditTotal]

This is stopping the next step of allowing additions etc if it’s essential to make changes.

So the question is how to extract details from the subforms when their data properties have been set to not allow additions, deletions and edits.

RE: Allow Additions = No prevents data being displayed properly

I have resolved this by adding an On Load event to each subform in Order Details to check if there is any data to display and to set the data properties accordingly.

This leaves a possible scenario where any of the three subforms that ends up allowing additions, deletions or edits might lead to accidental changes to existing orders but that's as close as I can get.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close