Question

Asked on 2009-10-16 at 04:18:29ID: 25040659

Lost the plot

by: davidtotty500

Rating8.6Very Good

Hi Guy's

This is probably an easy question! But here goes.

I want to run a LostFocus event to populate the fields on a form with data held in two different tables for a value already entered in a box on the form.
I've created an SQL statement to get the data I need but I can't quite figure out how to populate the rest of the boxes on the form with it.

Hope that makes sense!

David

ROTVAL = THISFORM.txtnrotno.VALUE
 
 
SELECT S_MOIM01.M_reqnum,S_MOIM01.M_ponum,S_MOIM01.M_sname,S_MOIM01.M_rotat1,;
	S_MOIM01.M_dategrw,S_MOIM01.M_invdescr,S_MOIM01.M_item_nos,;
	S_MOIM01.M_qtygrw,S_MOIM01.M_wtgwr,S_MOIM01.M_partcomp,;
	S_MOIM01.M_sup_refr,S_COIM01.Ce_pono,S_COIM01.F301,S_COIM01.F302,;
	S_COIM01.F303,S_COIM01.F304,S_COIM01.F305,S_COIM01.F306, S_COIM01.F307,;
	S_COIM01.F308, S_COIM01.F309, S_COIM01.F310, S_COIM01.F311,;
	S_COIM01.F312, S_COIM01.F313, S_COIM01.F314, S_COIM01.F315,;
	S_COIM01.F316, S_COIM01.F317;
	FROM K:\SSS\S90\S-MOIM01.DBF S_MOIM01 INNER JOIN K:\SSS\S90\S-COIM01.DBF S_COIM01 ON S_MOIM01.M_reqnum = S_COIM01.CE_REQNUM;
	WHERE (S_MOIM01.M_rotat1=ROTVAL)
                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:

Select allOpen in new window

Related Solutions

Solution

Access this solution immediately by signing up as a member of FoxproAnswers.com--it’s quick, easy, and secure. We will return you to this solution, unlocked, when you’re done.

About this Solution
Sign up Now to View This Solution
Zone
general
Tags
FoxPro
Participating Experts
2
Solution Grade
A

Replies

 by: AndrewJen

Posted on 2009-10-16 at 04:40:10ID: 26270611

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: davidtotty

Posted on 2009-10-16 at 05:44:29ID: 26270612

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: AndrewJen

Posted on 2009-10-16 at 05:59:08ID: 26270613

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: davidtotty

Posted on 2009-10-16 at 06:30:58ID: 26270614

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2009-10-16 at 06:55:04ID: 26270615

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: davidtotty

Posted on 2009-10-16 at 06:58:48ID: 26270616

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2009-10-16 at 06:59:23ID: 26270617

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2009-10-16 at 07:00:59ID: 26270618

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: davidtotty

Posted on 2009-10-16 at 07:08:34ID: 26270619

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2009-10-16 at 07:15:21ID: 26270620

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2009-10-16 at 07:17:55ID: 26270621

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: davidtotty

Posted on 2009-10-16 at 07:28:58ID: 26270622

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: pcelba

Posted on 2009-10-16 at 07:42:15ID: 26270623

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

  1. pcelba

    4,240

    0 points yesterday

    Profile
  2. mozner

    2,000

    0 points yesterday

    Profile
  3. mbarbir

    1,912

    0 points yesterday

    Profile
  4. jrbbldr

    1,500

    0 points yesterday

    Profile

BrowseAre you an Expert?