penfold1992
Registered User.
- Local time
- Today, 22:58
- Joined
- Nov 22, 2012
- Messages
- 169
Is there a way I can store dates in this format?
dd-mm-yyyy As a Date field. if i can then I wont need to do some coding... heres the issue.
I have files named in like this:
"DB dd-mm-yyyy.mdb" and I cant use "/"'s in filenames.
I then want to find a record that corresponds to the date of this file so I look for it like so...
SQLstr = "SELECT [Created Date] FROM [Backup] WHERE [Created Date]='" & Listings2(x) & "' ORDER BY [Created Date]"
Where Listing2 is an array of all the filenames (just the dd-mm-yyyy part)
however I recieve an error here and I think its because it cant find any of those dates because the date is not in dd/mm/yyyy format.
Either I need to go through the Array and replace all "-" with "/" or be able to store the date in this format "dd-mm-yyyy"
is that possible?
dd-mm-yyyy As a Date field. if i can then I wont need to do some coding... heres the issue.
I have files named in like this:
"DB dd-mm-yyyy.mdb" and I cant use "/"'s in filenames.
I then want to find a record that corresponds to the date of this file so I look for it like so...
SQLstr = "SELECT [Created Date] FROM [Backup] WHERE [Created Date]='" & Listings2(x) & "' ORDER BY [Created Date]"
Where Listing2 is an array of all the filenames (just the dd-mm-yyyy part)
however I recieve an error here and I think its because it cant find any of those dates because the date is not in dd/mm/yyyy format.
Either I need to go through the Array and replace all "-" with "/" or be able to store the date in this format "dd-mm-yyyy"
is that possible?