Computing.Net > Forums > Programming > importing object into Access

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

Reply to Message Icon

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?



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: importing object into Access

Import files into Access 2003 www.computing.net/answers/programming/import-files-into-access-2003/16680.html

Access 2000 append query help!!! www.computing.net/answers/programming/access-2000-append-query-help/1370.html

passing object into another classs www.computing.net/answers/programming/passing-object-into-another-classs/8341.html