Darren DICK
d.dick at uws.edu.au
Fri Aug 6 00:28:18 CDT 2004
Excellent But when I type StoredVariable >=Forms!frmReports!txtStartDate and <= Forms!frmReports!txtEndDAte in say... The OnOpen of the relevant for before I run the crodstab the line in the VBE goes RED and if I run a Debug it highlights that line and says syntax error I have tried enclosing the criteria portion of the line in quotes but that essentially turns it into a string syntax not a dynamc syntax What should I do next? I am most grateful for your efforts and time Many thanks Darren ----- Original Message ----- From: "Stuart McLachlan" <stuart at lexacorp.com.pg> To: "Access Developers discussion and problemsolving" <accessd at databaseadvisors.com> Sent: Friday, August 06, 2004 3:07 PM Subject: Re: [AccessD] A2K: Criterias in CrossTabs > On 6 Aug 2004 at 14:59, Darren DICK wrote: > > > Hi Stuart > > many thanks for the prompt reply > > > > Does this also work with dates? > Yes, I wrote it to store variants so it doesn't matter what data type you > are working with. > > > EG > > StoredVariable >=Forms!frmReports!txtStartDate and <= Forms!frmReportstxtEndDAte > > > > No can't do that , If you have two variables, you will need two stores so > create two functions StoredVariable1() and StoredVariable2(). > > Put Startdate in one, Enddate in the other and set the query criteria to > "Between StoredVariable1() and StoredVariable2()" > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com