Hello all, the is my first post!!!!
I have an issue with getting a query to work based on a form.
Heres the issue:
Im pulling data history and i was to have an option of the number of history records to pull. This is based on a "Date()-"X".
On my form i have 5 text boxes. I want to insert the day number in the box, and have that translate to the criteria, however if i only want to input 3 numbers i want it to pull only 3. If i put in 4 numbers i want it to pull those 4 dates.
Here is my code.
Code:
Date()-[Forms]![Find_Cos/Inv_Errors]![Text_Day1] Or
Date()-[Forms]![Find_Cos/Inv_Errors]![Text_Day2] Or
Date()-[Forms]![Find_Cos/Inv_Errors]![Text_Day3] Or
Date()-[Forms]![Find_Cos/Inv_Errors]![Text_Day4] Or
Date()-[Forms]![Find_Cos/Inv_Errors]![Text_Day5]
I keep getting ODBC failures which means im inputting something wrong.
What do you guys think