Click here to Skip to main content
15,899,474 members
Home / Discussions / Database
   

Database

 
GeneralNormalisation Pin
Edbert P5-Jan-05 17:35
Edbert P5-Jan-05 17:35 
GeneralRe: Normalisation Pin
Colin Angus Mackay5-Jan-05 22:35
Colin Angus Mackay5-Jan-05 22:35 
AnswerRe: How can I .... Pin
Edbert P5-Jan-05 17:34
Edbert P5-Jan-05 17:34 
QuestionHow to I get one table out of two ? Pin
Christian Graus4-Jan-05 9:47
protectorChristian Graus4-Jan-05 9:47 
AnswerRe: How to I get one table out of two ? Pin
Edbert P4-Jan-05 10:45
Edbert P4-Jan-05 10:45 
GeneralSQL to run mathematical equations Pin
ColdWaterBlue4-Jan-05 8:58
ColdWaterBlue4-Jan-05 8:58 
GeneralRe: SQL to run mathematical equations Pin
Colin Angus Mackay4-Jan-05 12:34
Colin Angus Mackay4-Jan-05 12:34 
GeneralAccessing Remote Files Via VBA code in Access DB Pin
frank214-Jan-05 2:44
frank214-Jan-05 2:44 
Hello All, I wrote the code below planning to use it to pick out the newest database log file in a certian directory on a computer on our LAN.

<br />
Function NewestFile(Directory, FileSpec)<br />
' Returns the name of the most recent file in a Directory<br />
' That matches the FileSpec (e.g., "*.xls").<br />
' Returns an empty string if the directory does not exist or<br />
' it contains no matching files<br />
    Dim FileName As String<br />
    Dim MostRecentFile As String<br />
    Dim MostRecentDate As Date<br />
    If Right(Directory, 1) <> "\" Then Directory = Directory & "\"<br />
    FileName = Dir(Directory & FileSpec, 0)<br />
    If FileName <> "" Then<br />
        MostRecentFile = FileName<br />
        MostRecentDate = FileDateTime(Directory & FileName)<br />
        Do While FileName <> ""<br />
            If FileDateTime(Directory & FileName) > MostRecentDate Then<br />
                 MostRecentFile = FileName<br />
                 MostRecentDate = FileDateTime(Directory & FileName)<br />
             End If<br />
             FileName = Dir<br />
        Loop<br />
    End If<br />
    NewestFile = MostRecentFile<br />
    <br />
End Function<br />


However, the directory that I need to pass to this function when called is a filepath on a computer on the LAN and the directory I need to access is password protected. Can anyone help me out on how to do authentication using VBA code in an access DB. Thanks is advance.

Frank
GeneralCrossTab Sql Server 2000 Pin
nikneem20054-Jan-05 1:53
nikneem20054-Jan-05 1:53 
GeneralRe: CrossTab Sql Server 2000 Pin
-Dr_X-14-Jan-05 15:08
-Dr_X-14-Jan-05 15:08 
GeneralOracle upgrade script gneration Pin
Andy H4-Jan-05 0:30
Andy H4-Jan-05 0:30 
Generalrecord locking Pin
ppp0014-Jan-05 0:07
ppp0014-Jan-05 0:07 
GeneralADO and Mysql Database! Pin
paykani3-Jan-05 20:04
paykani3-Jan-05 20:04 
GeneralRe: ADO and Mysql Database! Pin
S Douglas5-Jan-05 22:17
professionalS Douglas5-Jan-05 22:17 
GeneralColumn order in DataSet Pin
janigorse3-Jan-05 19:51
janigorse3-Jan-05 19:51 
GeneralRe: Column order in DataSet Pin
Colin Angus Mackay3-Jan-05 23:08
Colin Angus Mackay3-Jan-05 23:08 
GeneralRe: Column order in DataSet Pin
janigorse3-Jan-05 23:30
janigorse3-Jan-05 23:30 
GeneralRe: Column order in DataSet Pin
Colin Angus Mackay3-Jan-05 23:37
Colin Angus Mackay3-Jan-05 23:37 
General2 thread use the same database connection to do transaction Pin
ting6683-Jan-05 16:52
ting6683-Jan-05 16:52 
GeneralRe: 2 thread use the same database connection to do transaction Pin
Colin Angus Mackay3-Jan-05 22:59
Colin Angus Mackay3-Jan-05 22:59 
GeneralRe: 2 thread use the same database connection to do transaction Pin
ting6684-Jan-05 0:13
ting6684-Jan-05 0:13 
GeneralRe: 2 thread use the same database connection to do transaction Pin
Colin Angus Mackay4-Jan-05 0:22
Colin Angus Mackay4-Jan-05 0:22 
GeneralMSDE Server Connection Settings Pin
Axsys3-Jan-05 11:49
Axsys3-Jan-05 11:49 
GeneralRe: MSDE Server Connection Settings Pin
Colin Angus Mackay3-Jan-05 22:55
Colin Angus Mackay3-Jan-05 22:55 
GeneralRe: MSDE Server Connection Settings Pin
Colin Angus Mackay4-Jan-05 22:03
Colin Angus Mackay4-Jan-05 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.