randolphoralph
Registered User.
- Local time
- Today, 05:45
- Joined
- Aug 4, 2008
- Messages
- 101
I have a form that contains order information with the salesperson id.
At the bottom of the form I have a subform which displays all the records (orders) of the unique sales person based on the salesperson id that is entered on the record.
Once the salesperson id is entered I am running an After Update to refresh to show the orders in the sub form.
When the salesperson first starts filling in information on the form there are a couple of fields that they fill in before they put in the salesperson id.
The issue is that as soon as they began filling in the first field (Order Date) on a new record the subform displays the orders of salesperson from the last record entered. Once the salesperson id is entered on the new record the data is refreshed on the subform.
How do I prevent data showing on the subform until the salesperson id is entered?
At the bottom of the form I have a subform which displays all the records (orders) of the unique sales person based on the salesperson id that is entered on the record.
Once the salesperson id is entered I am running an After Update to refresh to show the orders in the sub form.
Code:
Private Sub SalespersonId_AfterUpdate()
Me.Refresh
End Sub
When the salesperson first starts filling in information on the form there are a couple of fields that they fill in before they put in the salesperson id.
The issue is that as soon as they began filling in the first field (Order Date) on a new record the subform displays the orders of salesperson from the last record entered. Once the salesperson id is entered on the new record the data is refreshed on the subform.
How do I prevent data showing on the subform until the salesperson id is entered?