Winterwolf73
New member
- Local time
- Today, 07:43
- Joined
- Jul 3, 2020
- Messages
- 26
I have a form with a sub form. On the main form is an unbound text box where the user can input an account number. When the user clicks the "Find Account" button the following should occur.
1. Runs a query to search the customer table for the result.
2. Display the results on a bound subform.
Here is what is actually happening.
1. The query will run, but it opens the results in datasheet view. How can I keep this from happening?
2. After the query run, I have to go back and manually refresh the form for the results to show. I have added the following code to the On Current property of my main form. However, it is still not automatically refreshing the form to display the result in the subform.
Private Sub Form_Current()
[Update Customer].Requery
End Sub
1. Runs a query to search the customer table for the result.
2. Display the results on a bound subform.
Here is what is actually happening.
1. The query will run, but it opens the results in datasheet view. How can I keep this from happening?
2. After the query run, I have to go back and manually refresh the form for the results to show. I have added the following code to the On Current property of my main form. However, it is still not automatically refreshing the form to display the result in the subform.
Private Sub Form_Current()
[Update Customer].Requery
End Sub