?
Solved

MS Access : how to update subform

Posted on 2004-08-21
4
Medium Priority
?
845 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
naivad earned 60 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this article, we’ll look at how to deploy ProxySQL.
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

764 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