> > > > > Dear sirs
> > > > >
> > > > > Have a database and want to search on two fields Have created a form with 2 textboxes and search on each of the fields using the textboxes and keypress procedure All works beautifully However the key pressed and the field data both show in the textbox How do i stop the key pressed from displaying
> > > > >
> > > > > Regards len cockram
> > > >
> > > > Put a NODEFAULT statement after your code in the KeyPress event to supress the default behaviour (ie. The character typed being added to the textbox)
> > > >
> > > > Cheers,
> > > > Jamie
> > > >
jamie.osborn@foxite.com> > > Dear jamie
> > >
> > > Have given it a try Exactly where does the nodefault statement go According to help it looks like "procedure keypress nodefault" have tried this and "procedure keypress this_access nodefault" to no avail
> > >
> > > Tks
> > >
> > > Len cockram
> > Dear jamie
> >
> > If you put the nodefault after the local parameters it works which is beaut but it also takes out "tab" etc to move between controls How else can i move between controls pls
> >
> > Regards len cockram
> Put nodefault in an "if" "endif" and it works
>
> Tks len cockram
Yep that's the way to do it. Only issue a NODEFAULT for keys that you want to intercept.
Cheers,
Jamie
jamie.osborn@foxite.com