Solved

MS Access : how to update subform

Posted on 2004-08-21
4
822 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…

786 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