HI,
I have a Mailing List .DBF file indexed by zip code. I've
created a Form with one TEXTBOX and one GRID. The textbox
is so the USER can enter the 1st "3" numbers of mailist
zip code and then the grid becomes visable to show starting
1st "3" numbers and anything else after that! Example: If I
enter "480" I want the GRID to start at all zip codes with
480 and higher. Right now the Grid only opens up showing
"all" zip codes in the right order but starting at "010"
In textbox properties I have code as follows:
INIT: zip = space(len(mlzip)) ?? mlzip is field in .DBF
VALID: seek(zip,3)
This works quite well and the textbox does properly seek
the record I want, but when I make the Grid visable it
shows "all" the zip codes from start to finish !!
I've tried "refreshing" the GRID after I "seek" the zip in textbox and the GRID still shows all zip codes. I've tried setting the "crontol source" for all textboxs (within the grid) after the seek command and it still dosen't work.
I've tried setting up a "cursor" with mailist.dbf and
create the GRID from data-environment within the Form
but that dosen't work. How can I "link" the GRID to the
TEXTBOX (SEEK) outside the grid so the Grid starts at the record I want using the SEEK command. Any help would be greatly appreciated.
Greg
I have a Mailing List .DBF file indexed by zip code. I've
created a Form with one TEXTBOX and one GRID. The textbox
is so the USER can enter the 1st "3" numbers of mailist
zip code and then the grid becomes visable to show starting
1st "3" numbers and anything else after that! Example: If I
enter "480" I want the GRID to start at all zip codes with
480 and higher. Right now the Grid only opens up showing
"all" zip codes in the right order but starting at "010"
In textbox properties I have code as follows:
INIT: zip = space(len(mlzip)) ?? mlzip is field in .DBF
VALID: seek(zip,3)
This works quite well and the textbox does properly seek
the record I want, but when I make the Grid visable it
shows "all" the zip codes from start to finish !!
I've tried "refreshing" the GRID after I "seek" the zip in textbox and the GRID still shows all zip codes. I've tried setting the "crontol source" for all textboxs (within the grid) after the seek command and it still dosen't work.
I've tried setting up a "cursor" with mailist.dbf and
create the GRID from data-environment within the Form
but that dosen't work. How can I "link" the GRID to the
TEXTBOX (SEEK) outside the grid so the Grid starts at the record I want using the SEEK command. Any help would be greatly appreciated.
Greg