Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access database password 1

Status
Not open for further replies.

petecass

Programmer
Jul 30, 2004
19
GB
I wish to set a database password. No problem so far.
I can open etc

My problem is that I do all the reports from access using the following code:

Public Sub Access_Report(ReportID As String)
On Error Resume Next
access.OpenCurrentDatabase Login.DatabaseLocation & Login.DatabaseDSN & "1.mdb", True
access.DoCmd.Maximize
access.DoCmd.OpenReport ReportID, acViewPreview
access.Screen.ActiveReport.OnClose = "Macro_Quit"
access.Application.Visible = True
Screen.MousePointer = vbNormal
End Sub


this will then come up with the login prompt.
how can i override this with code????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top