Passing Field Values Between Forms PDXv4.5 
Author Message
 Passing Field Values Between Forms PDXv4.5

I hope this problem is merely due to my inexperience, as it seems to be
one that should have a fairly straightforward answer.

     The Goal:  To pick up the field value in one form and pass it to a
field on                              another form.

Background:
Two tables, Job = Parent with key Job Number, Estimate = Child with field
Job Number - referential integrity check applied).  I am attempting to
move from the data entry form for the Job table to the data entry form for
the Estimate table with the push of a button.  I would like the code to
pick up the job number from the first form and enter it into the job
number field on the second form.  I have tried using a library method, but
have not been successful in attempting to make the library method
determine the value of a variable assigned to the Job form (button push
assigns value of Job Number field to variable declared at form level).  

Is this possible?  Is there a better way?



Thu, 23 Jul 1998 03:00:00 GMT
 Passing Field Values Between Forms PDXv4.5

Quote:

> I hope this problem is merely due to my inexperience, as it seems to be
> one that should have a fairly straightforward answer.

>      The Goal:  To pick up the field value in one form and pass it to a
> field on                              another form.

> Background:
> Two tables, Job = Parent with key Job Number, Estimate = Child with field
> Job Number - referential integrity check applied).  I am attempting to
> move from the data entry form for the Job table to the data entry form for
> the Estimate table with the push of a button.  I would like the code to
> pick up the job number from the first form and enter it into the job
> number field on the second form.  I have tried using a library method, but
> have not been successful in attempting to make the library method
> determine the value of a variable assigned to the Job form (button push
> assigns value of Job Number field to variable declared at form level).

> Is this possible?  Is there a better way?

There are a number of ways to do it.  I am going to assume that Job
Number is a number for try this on the button.

Var
  lookNum number
  f       form
endVar

lookNum = Job_Number.value

f.open("form2", winstyleDefault + winStyleHidden)
f.Job_Number.locate("Job Number", lookNum)
f.bringToTop()

you need to add some other code depending on whether there may be another
copy opened, any security, etc.

HTH

Sara Cotellese



Mon, 27 Jul 1998 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Passing field values form one form to another!

2. Passing a field value between forms using TC's

3. Passing field values from one form to another in PDOX4WIN

4. Passing values form -> form

5. Passing a value from a form / subform to a report

6. Passing form values to SQL Connection string on ASP page

7. Passing Value from Form to SP Parameter

8. How can i pass a value from a Com back to the ASP form

9. Help passing data control value to another form

10. Passing values between forms

11. Re : passing values between two forms

12. passing values form one page to another with java script


 
Powered by phpBB® Forum Software