Solved

MS Access : how to update subform

Posted on 2004-08-21
4
804 Views
Last Modified: 2006-11-17
Hi,

I have a main form "Customer company", that has a subform "Customer Contact"
In the main form, there is a txtbox that is called "Customer Contact ID".
Depending on this txtbox, the correct record is shown in the "Customer Contact" Subform.

The link is working correctly (I've used the wizard to create the link).

but is only working correctly when I change records in the main form,
not when I manually change the value of Customer Contact ID.

adding a requery of the subform when the Customer Contact ID txtbox changes, doesn't help.

Help !
0
Comment
Question by:Thomas_VDB
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
naivad earned 30 total points
ID: 11859475
in design view of the form, go to the properties of the Customer Contact ID text box / combo box. Add an Event Procedure to After Update for that control...

Put this code in the sub

me![Customer Contact]!Form.Requery
0
 

Author Comment

by:Thomas_VDB
ID: 11863224
I just tried that. Didn't help.

The costomer contact ID text box in the subform doesn't change when I change the one in the main form.

What is going wrong?

As I said, the subform does update when i change record in the main form.
0
 
LVL 4

Expert Comment

by:naivad
ID: 11864405
Is it a bound or unbound control?
0
 

Author Comment

by:Thomas_VDB
ID: 11867884
the customer contact ID is a bound control.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now