Home > database >  Data window value problem??
Data window value problem??

Time:10-27

There is a table
C_name c_note
Zhang SAN Chinese
Zhang SAN mathematics
Li si English
Li si geographic


Need in the data window, fill in the zhang SAN, an optional learning class, but only the drop-down to select "language" or "mathematical"., how to do? The best point in detail, for beginners

CodePudding user response:

C_note establish a drop-down child data window, after each c_name change, filter dropdown child data window,

CodePudding user response:

After I in the first column changeed,

If dwo. Name='c_score then//the first column
Datawindowchild LDWC
Enclosing getchild (' c_gcode 'LDWC)//the second column, to filter the column of
LDWC. Setfilter (' c_score_s=10)//condition
LDWC. Filter ()
End the if

The drop-down, or bring up all the, what problem is this?

CodePudding user response:

Using childdatawindow can achieve;

CodePudding user response:

refer to the second floor cxbiwk response:
I in the first column changeed,

If dwo. Name='c_score then//the first column
Datawindowchild LDWC
Enclosing getchild (' c_gcode 'LDWC)//the second column, to filter the column of
LDWC. Setfilter (' c_score_s=10)//condition
LDWC. Filter ()
End the if

The drop-down, or bring up all the, what problem is this?


LDWC dataobject is correctly set and retrieve the data successfully.
. In addition, accept the LDWC setfilter (' c_score_s=10) return values, isn't it - 1.
  • Related