Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
importing object into Access
Name: Drew Date: November 13, 2002 at 14:01:04 Pacific OS: Win2K CPU/Ram: Pentium 4
Comment:
I'm moving a text file from a network drive and inserting it into an access database. Is there anyway to say go and grab the file with the most recent modified date? They are adding a file each business day and naming it with the date example(textfile111302). I could use a date function and tell it to take today's date -1, but the problem is they do not create a file on weekends or holidays, so that would not work. Any suggestions?
Name: Callan Date: November 13, 2002 at 14:47:42 Pacific
Reply:
It might seem obvious, but if they change the way they create the date part of the name to YYMMDD then you just need to select the "greatest of" the file names and this will always be the latest date. No date conversion is needed, they just need to remember the zeros in front of single digit days or months.
As a completely irrelevant aside, I've often wondered why American dates are presented MMDDYY. Here in the UK the are DDMMYY, which seems a more logical sequence of increasing time period. The difference can create havoc when using American data or formats here - is 5/6/02 the fifth of June or the sixth of May?
Anyway, I hope the above suggestion helps.
0
Response Number 2
Name: brandon Date: November 14, 2002 at 06:30:40 Pacific
Reply:
that's why i prefer the computer's default. YYYYMMDD. Decreasing imortance. iluvit.
Summary: I am not well versed in VB but I know enough to get by. I am trying to develop a module for Access 2003 that would allow me to select a particular folder that contains several files in it (doc, txt, ...
Summary: I have a large contacts database. I have information entered in an excel sheet. I import that into access fine. But when I try to append the imported database to the main database, i get errors. What ...
Summary: I am trying to pass two objects into another class. I have created a time class and a date class. I have passed those two objects into a class I call timedate. Here is where I passed them. TimeDat...