![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Access 2003 SP3 I have a form with a couple of date/time fields On one PC I can do a filter by form and enter *17/03/2010* and the filter will display records where the date is 17/03/2010 (regardles of the time part) which is what I want. However, on two other PCs if I try and filter on the same textbox with the same filter I get an error. "The expression you entered contain invalid syntax" You may have entered a comma without a preceeding value or identifier The PC it works on is running Vista 64 Bit The other PCs where it does not work are Windows XP PRO SP3 The version of Access is the same on all 3 PCs. Another thing, on the PCs that will not work, if I highlight the date with my mouse and then use 'filter by selection' it works fine, so I thought I would look at the forms filter at that point and this is it ((Format$(qryShowAllEquipment.dtmLoanStartDateTime ,"dd/mm/yyyy hh:nn") Like "17/03/2010*")) So it seems Access wraps a format around the filter expression? Can anybody suggest a solution to how I get this to work on all 3 PCs? Many Thanks Dennis |
#3
| |||
| |||
|
|
= [Forms].[Form1].[Text0] AND < ([Forms].[Form1].[Text0] + 1) |
|
Access 2003 SP3 I have a form with a couple of date/time fields On one PC I can do a filter by form and enter *17/03/2010* and the filter will display records where the date is 17/03/2010 (regardles of the time part) which is what I want. However, on two other PCs if I try and filter on the same textbox with the same filter I get an error. "The expression you entered contain invalid syntax" You may have entered a comma without a preceeding value or identifier The PC it works on is running Vista 64 Bit The other PCs where it does not work are Windows XP PRO SP3 The version of Access is the same on all 3 PCs. Another thing, on the PCs that will not work, if I highlight the date with my mouse and then use 'filter by selection' it works fine, so I thought I would look at the forms filter at that point and this is it ((Format$(qryShowAllEquipment.dtmLoanStartDateTime ,"dd/mm/yyyy hh:nn") Like "17/03/2010*")) So it seems Access wraps a format around the filter expression? Can anybody suggest a solution to how I get this to work on all 3 PCs? Many Thanks Dennis |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Thank you for your answers, I believe I may not have made myself clear in my question, sorry This problem is happening when a user uses the 'Filter By Form' button on the menubar. I am not writing code at this point. So on one PC the user clicks the 'Filter By Form' button, enters *17/03/2010* into the date textbox, then clicks the 'Apply Filter' button on the menubar. One PC shows the form with all the records containing 17/03/2010 and the other two show this error "The expression you entered contain invalid syntax" You may have entered a comma without a preceding value or identifier So, the real question is why does the user get the expected result on one PC and an error on 2 other PCs? Dennis |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Thanks Allen, Yes I agree that the most important thing to find out is why the PCs are behaving differently, I know the values being entered are the same as I am entering them, this database has not been delivered yet. The PCs are using different OS's Vista 64 Bit (works) XP PRO (does not work) I have also tried on a 32 Windows 7 PC, this works as well. I am sure the Access SP's are the same, the regional settings are the same, I am not sure how to check JET. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |