It does have to ask for the parameters. If it is asking multiple times, the way around that is to create a form, and put 2 text boxes on the form. Then in your query, use this kind of thing: WHERE RosterDate Between [Forms].[Form1].[Enter First Date] And [Forms].[Form1].[Enter Second Date]; Now open the form and put the dates in before you run the query, and it will read the dates
Fred, Thank you for your help, I never considered the word wrap (sorry for that). It all works great now, I apologise for taking so long to reply but I am in Australia and the time difference makes it difficult but great work and thank you again. Rodney "fredg" wrote: On Fri, 17 Aug 2007 23:36:00 -0700, Rodney wrote: Fred, Thank you for your help. I have
Fred, Thank you for your help. I have tryed your suggestions and the first I get a syntax error on the line Exit_This_Sub: And the second one get a syntax error on the line If DCount("*","tblRoster","[TrainerID] = " & Me!TrainerID & " and Than you again Rodney "fredg" wrote: On Thu, 16 Aug 2007 22:38:00 -0700, Rodney wrote: Could I please have some help with
Could I please have some help with this code. I have the below code so far but it don't do what I would like. I want it to check if there are [RosterDate] bewteen Me!LeaveStartDate and Me!LeaveEndDate but I also want to include the first day of leave LeaveStartDate and the last day of leave LeaveEndDate not just dates between them and if there are [RosterDate] within that period then display
Thanks dale, I will try both of these and see how they go. I will get back to you. Thank you Rodney "Dale Fye" wrote: Rodney, I cannot tell what is going on either. But I have two suggestions, but I recommend option #1? 1. If your RosterDate field is filled in before the TrainerID, why not use a combo box for the trainers that automatically filters out the trainers