S steve87bg Registered User. Local time Today, 17:48 Joined Jan 14, 2013 Messages 19 Jan 30, 2013 #1 I wan't to user enter only year in form text box and that my query where statement be between 1.1.(year from text box) and 31.1.(year from text box) Is this possible?
I wan't to user enter only year in form text box and that my query where statement be between 1.1.(year from text box) and 31.1.(year from text box) Is this possible?
John Big Booty AWF VIP Local time Tomorrow, 03:48 Joined Aug 29, 2005 Messages 8,243 Jan 30, 2013 #2 You could use the DateSerial() function to create your two dates based on the user input, the criteria might look something like; Code: Between DateSerial(Forms!YourFormName!YourTextBox , 1, 1) And DateSerial(Forms!YourFormName!YourTextBox, 1, 31)
You could use the DateSerial() function to create your two dates based on the user input, the criteria might look something like; Code: Between DateSerial(Forms!YourFormName!YourTextBox , 1, 1) And DateSerial(Forms!YourFormName!YourTextBox, 1, 31)
S steve87bg Registered User. Local time Today, 17:48 Joined Jan 14, 2013 Messages 19 Jan 30, 2013 #3 It wont work. Its said that expression is typed incorrectly or that is too complex
John Big Booty AWF VIP Local time Tomorrow, 03:48 Joined Aug 29, 2005 Messages 8,243 Jan 30, 2013 #4 I've just tested it, again, and yes it does work. However you will need to change YourFormName and YourTextBox to reflect the reality of your DB.
I've just tested it, again, and yes it does work. However you will need to change YourFormName and YourTextBox to reflect the reality of your DB.