I have a table called 'Logon' which contains 6 columns. The first column contains a date in format DD/MM/YYYY.
Some of the dates are preceeded by the day name, for example 'Mon', 'Tue' etc. I need to remove the preceeding day names and so have created a make take query. The query looks at the 'Logon' table makes a table called 'LogonQ'.
I use the Replace function in the first column (named Field1) but whenever I run the query it creates the 'LogonQ' table minus any rows which contain a day name in column 1.
The code I'm using in the 'Criteria' section of 'Field1' in the make table query is:
Replace([Field1],"Mon ","") And Replace([Field1],"Tue ","") And Replace([Field1],"Wed ","") And Replace([Field1],"Thu ","") And Replace([Field1],"Fri ","") And Replace([Field1],"Sat ","") And Replace([Field1],"Sun ","")
Obviously I'm being a nonce, but I'm at a loss to see where!
If anyone can help or if I can clarify anything then it would really be appreciated.
thanks
Some of the dates are preceeded by the day name, for example 'Mon', 'Tue' etc. I need to remove the preceeding day names and so have created a make take query. The query looks at the 'Logon' table makes a table called 'LogonQ'.
I use the Replace function in the first column (named Field1) but whenever I run the query it creates the 'LogonQ' table minus any rows which contain a day name in column 1.
The code I'm using in the 'Criteria' section of 'Field1' in the make table query is:
Replace([Field1],"Mon ","") And Replace([Field1],"Tue ","") And Replace([Field1],"Wed ","") And Replace([Field1],"Thu ","") And Replace([Field1],"Fri ","") And Replace([Field1],"Sat ","") And Replace([Field1],"Sun ","")
Obviously I'm being a nonce, but I'm at a loss to see where!
If anyone can help or if I can clarify anything then it would really be appreciated.
thanks