Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

3 datagrids linked trought data environment

Posted on 2002-07-19
12
Medium Priority
?
130 Views
Last Modified: 2010-05-02
I have 3 datagrids linked together via data environment:

dgCustomer is parent to dgContact, dgContact is parent to dgInvoice.

It is working well when the form loads... the dg3 reprensents the dgInvoice shows the records for the selected Contact and the dgContact shows the good contact for the selected customer.

The problem: as soon as I select another customer, the good contact are shown in the dgContact but the dgInvoice is empty... and stays this way even when I go back to the first customer... this dataGrid is empty except on the formLoad.

Anyone as an idea?
0
Comment
Question by:jeanfrancoismelancon
[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
  • 6
  • 5
12 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7164682
Show you code that refresh the grids.
0
 

Author Comment

by:jeanfrancoismelancon
ID: 7164701
No code is necessary to refresh the grids with the dataEnvironment
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7164720
Have you created hierarcical commands? What I suggest is that you use the DataForm wizard to generate a Master/Detail form and look at the code when changing record. You will see that some code is required to refresh the grids.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jeanfrancoismelancon
ID: 7164743
But then way is it working very well with 2 dataGrids?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7164749
Is your hierarchie well formed?
0
 

Author Comment

by:jeanfrancoismelancon
ID: 7164765
Yes, it is well formed. When I change an Invoice, then I requery the recordset and re-bind the dataGrids, it is working again, but the same thing appens as on formLoad.

Any Idea?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7164768
So you have some code! Show it.
0
 

Author Comment

by:jeanfrancoismelancon
ID: 7164808
Yes but the code I have is only when I update some data... but the problem I have is when I click on my dgCustomer... the dgContact refreshes correctly, but with the dgInvoice nothing appens. And I do nothing much (or less) between those two.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 400 total points
ID: 7164849
You better go using code. See the DataForm Wizard.
0
 

Author Comment

by:jeanfrancoismelancon
ID: 7164924
I know I can make it work using something else than the data Environment... but I want to use the date Environment because there is no code to make it work... all I want to know is if it works properly.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7348091
This question appears to be abandoned. A question regarding it will be left in the CleanUp
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7373333
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

649 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