R
RoMi
My Query selects the records upon a parameter that must be entered by a
user. (Ex. Criteria= Like [Enter the number of days]). This works O.K. if
the data are shown in a Datasheet View.
But for some reason I need this Datasheet on a Sub Form of the Form called
frmOldData. This form is activated by a cmdButton on the Menu Form in this
way: cmdButton activate a macro which opens the frmOldData. Before the
frmOldData is opened a small window asks for the parameter for a query.
After the entering a requested number the same window appears again and I
have to repeat the same parameter again. After that the frmOldData opens
with a requested Datasheet on a Sub Form. All the data are correct.
Why the Query request the parameter two times? Where could be mistake?
All this is made in Access2002 using VBA.
Thank you for any advice.
user. (Ex. Criteria= Like [Enter the number of days]). This works O.K. if
the data are shown in a Datasheet View.
But for some reason I need this Datasheet on a Sub Form of the Form called
frmOldData. This form is activated by a cmdButton on the Menu Form in this
way: cmdButton activate a macro which opens the frmOldData. Before the
frmOldData is opened a small window asks for the parameter for a query.
After the entering a requested number the same window appears again and I
have to repeat the same parameter again. After that the frmOldData opens
with a requested Datasheet on a Sub Form. All the data are correct.
Why the Query request the parameter two times? Where could be mistake?
All this is made in Access2002 using VBA.
Thank you for any advice.