Guest_imported
New member
- Jan 1, 1970
- 0
Are doing something fundamentally wrong?
We are building a name search on a personsform using a personsgrid and textboxes with no controlsource. .
Our code in the lostfocus of each is:
vfname=thisform.firstname.value
vlname=thisform.lastname.value
Do Case
Case m.vfname=''
Do Case
Case m.vlname=''
Set filter to
Go top
Case m.vlname<>''
Set filter to m.vlame=lname
Endcase
Case m.vfname<>''
Do Case
Case m.vlname=''
Set filter to m.vfname=fname
Case m.vlname<>''
Set filter to m.vfname=fname .and. m.lname=lname
Endcase
Endcase
thisform.refresh
Variables have the value. . .but we can't get them to catch. . .trying to get this to work for we have many Herberto Romaneos here. . .we would like to make it more compound than this, but we are fundamentally missing something.Any guidance would be appreciated! Dun'ka
We are building a name search on a personsform using a personsgrid and textboxes with no controlsource. .
Our code in the lostfocus of each is:
vfname=thisform.firstname.value
vlname=thisform.lastname.value
Do Case
Case m.vfname=''
Do Case
Case m.vlname=''
Set filter to
Go top
Case m.vlname<>''
Set filter to m.vlame=lname
Endcase
Case m.vfname<>''
Do Case
Case m.vlname=''
Set filter to m.vfname=fname
Case m.vlname<>''
Set filter to m.vfname=fname .and. m.lname=lname
Endcase
Endcase
thisform.refresh
Variables have the value. . .but we can't get them to catch. . .trying to get this to work for we have many Herberto Romaneos here. . .we would like to make it more compound than this, but we are fundamentally missing something.Any guidance would be appreciated! Dun'ka