Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Field Data
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00032997
Message ID:
00033056
Vues:
41
>OK, lets see if I can explain what I need here :-).
>
>1. I have a page frame set up where the first page is to enter in customer
>data the second page is a grid where they can see the items already entered
>in for that customer on page one.
>
>2. The client needs to add a new item for the current customer on page 2.
>This is no problem I have it doing this. The problem is that the customer
>id from page 1 is not being saved in the items table from page 2.
>
>3.So when you save the record it is no longer there because the customer id
>did not get saved with the rest of the data in the items table.
>
>How do I get the customer id from page 1 to be saved with the items data on
>page 2?
>

Did U trace the problem and use debug. When you create a new record, Append Blank (or whatever) what is the value of Customer ID? You need to set it somewhere. What I do is auto-fill the ID field just before saving the record. Within the Save routine, I have various checks and balances to insure data integrity and also auto-fill fields derived from the parent table. I just make an assignment to the appropriate field(s). Items.CustID=Customer.CustID then do the TableUpdate stuff... htwh
Steve Medvid
Systems Analyst

Environmental Resource Management
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform