VBAhole22
Registered User.
- Local time
- Today, 01:40
- Joined
- Jan 18, 2002
- Messages
- 117
I am working on an Access project (.adp) using Access2k and SQL Server2k as the back-end. I apologize if this isn't the correct forum for this post.
I have a main form and a subform in my project that I am using for data entry into 2 tables that are in a one to many relationship. My problem is that I can't figure out a way to get the main part of the form to refresh after a record has been submitted into the subform. What I would like would to have happen is that after the user submits a record into the subform a field in the main form would get updated for the user to see. Right now all I have is a count field in the main form that shows how many records are in the subform but it doesn't update as new records are added in the subform. I would also like to add a text box in the main form that is either visible or not based on what the user enters in the subform.
To me this problem seems like it would be an easy one to solve if I was working with ASP or some other kind of web based db because I would have a big button that says 'Submit' on the subform and after it was clicked I would 'draw' another page based on the new data that went in to the table. But how can I accomplish this effect within an Access form?
I have a main form and a subform in my project that I am using for data entry into 2 tables that are in a one to many relationship. My problem is that I can't figure out a way to get the main part of the form to refresh after a record has been submitted into the subform. What I would like would to have happen is that after the user submits a record into the subform a field in the main form would get updated for the user to see. Right now all I have is a count field in the main form that shows how many records are in the subform but it doesn't update as new records are added in the subform. I would also like to add a text box in the main form that is either visible or not based on what the user enters in the subform.
To me this problem seems like it would be an easy one to solve if I was working with ASP or some other kind of web based db because I would have a big button that says 'Submit' on the subform and after it was clicked I would 'draw' another page based on the new data that went in to the table. But how can I accomplish this effect within an Access form?