Question

Asked on 2009-01-12 at 07:38:26ID: 25033309

Can't populate a Visual Foxpro combo list.

by: mikejcurtis0

Rating8.0Very Good

I know this has to be something stupid I'm doing. I have a table called Products that contains a list of "Machines", for each machine there are a number of "Stations". I'm trying to make a form where the user selects a Machine from a list, then based on which machine they choose, when they click on a second field, a combo list appears and only the stations for the machine they've picked are listed. The product table contains multiple rows with the same Machine, but each Machine/Station combination is unique. I've tried adding a procedure with a SQL statement  but I can't get the second list to populate.  

LPARAMETERS lall
IF lall
    SELECT DIST station as stationa,* from products into cursor station READWRITE
ELSE
    SELECT station as stationa,* from products WHERE ;
        ALLTRIM(STR(products.machine))=ALLTRIM(thisform.machine1.combo1.displayvalue) ;
        into cursor station READWRITE
ENDIF
                              
1:
2:
3:
4:
5:
6:
7:
8:

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
Combo List SQL Statement
Participating Experts
1
Solution Grade
A

Replies

 by: ramrom

Posted on 2009-01-12 at 08:07:12ID: 26222399

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: ramrom

Posted on 2009-01-12 at 08:16:09ID: 26222400

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: mikejcurtis

Posted on 2009-01-13 at 12:02:06ID: 26222401

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: mikejcurtis

Posted on 2009-01-13 at 12:22:11ID: 26222402

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?