I have attached a database I am currently working on
Ive tried some code I found in a previous source on EE in relation to adding fields and a command button on a form to create and run a report from a particular date range. The original source is :-
DoCmd.OpenReport "YourReport", acViewPreview, , "Full Date>=#" & [StartDateTextBox] & "# AND <=#" & [EndDateTextBox] & "#"
Ive created a form and tried posting the code and linking this to the command button but cannot seem to get it to link to the code?
Am I doing something wrong? Any help or other suggestions would be much appreciated.