D
DawnTreader
hello
i have a project where i have lots of fields that filter things on the
forms. i have the typical apply filter button, but i have also been using a
key catch for the enter key.
when a user updates the filtering field and hits enter i cause it to requery
the sub query that the filtering field creates a filter for. on some forms
the amount of times i put in the code:
If KeyAscii = vbKeyReturn Then
Me.mySubform.Requery
End If
is ridiculous.
so the question is should i make a routine for the form(s) that calls the
little bit of code? it seems so repeatative to put this code in again and
again. would subroutining this speed up the db in general, or save on hard
drive space. i know it would probably be minimal gains, but the question
boils down to when is it more efficient as a subroutine?
i have a project where i have lots of fields that filter things on the
forms. i have the typical apply filter button, but i have also been using a
key catch for the enter key.
when a user updates the filtering field and hits enter i cause it to requery
the sub query that the filtering field creates a filter for. on some forms
the amount of times i put in the code:
If KeyAscii = vbKeyReturn Then
Me.mySubform.Requery
End If
is ridiculous.
so the question is should i make a routine for the form(s) that calls the
little bit of code? it seems so repeatative to put this code in again and
again. would subroutining this speed up the db in general, or save on hard
drive space. i know it would probably be minimal gains, but the question
boils down to when is it more efficient as a subroutine?