G
Guest
Hi All,
I have an Access 2003 query which uses 3 linked tables to an Oracle DB.
Even if I select the remember password option when linking the tables I am
still prompted for the password when using queries etc...
I would like to be able to have the query running on startup using the
autoexec macro, however, I am prompted for the password and would like the
whole process to be automated.
I am only a novice user of Access and VB and have the following code so far.
Can I include a password for this so that the whole routine can be automated
and palced on a scheduled task?
Function Autoexec()
On Error GoTo Autoexec_Err
DoCmd.OpenQuery "Ex2k3AddJobs", acViewNormal, acReadOnly
DoCmd.OutputTo acQuery, "", "MicrosoftExcelBiff5(*.xls)",
"d:\excel.xls", False, "", 0
Autoexec_Exit:
Exit Function
Autoexec_Err:
MsgBox Error$
Resume Autoexec_Exit
End Function
Many Thanks
Elliott Millin
I have an Access 2003 query which uses 3 linked tables to an Oracle DB.
Even if I select the remember password option when linking the tables I am
still prompted for the password when using queries etc...
I would like to be able to have the query running on startup using the
autoexec macro, however, I am prompted for the password and would like the
whole process to be automated.
I am only a novice user of Access and VB and have the following code so far.
Can I include a password for this so that the whole routine can be automated
and palced on a scheduled task?
Function Autoexec()
On Error GoTo Autoexec_Err
DoCmd.OpenQuery "Ex2k3AddJobs", acViewNormal, acReadOnly
DoCmd.OutputTo acQuery, "", "MicrosoftExcelBiff5(*.xls)",
"d:\excel.xls", False, "", 0
Autoexec_Exit:
Exit Function
Autoexec_Err:
MsgBox Error$
Resume Autoexec_Exit
End Function
Many Thanks
Elliott Millin