Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
| Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2004, 10:18 AM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to cmedley007
Default problem with auto login script to MSDE

I have a database that has an ODBC connection to an external database in another program. The problem is when you open the database you have to log into MSDE each time.I want it to automatically log into MSDE when I open the database through the startup message screen. On the startup screen I have the following module defined:

Private Sub Form_Load()

Dim Myserver As Usercontrol
Set Myserver = MSSQLServer
Myserver.Connect "servername", "username", "password"

End Sub

I get the error "user type not defined" and I need help to get it to work. Any ideas as to what to do? I am new to this and it really is bugging me.

 
Old July 8th, 2004, 11:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Hi,

While I don't recognize some of the objetcs you're declaring here, you might simply consider using Windows authentication on a trusted connection, instead of requiring a second login using standard MSDE security.

Bob





Similar Threads
Thread Thread Starter Forum Replies Last Post
having a problem with login script dbwieler PHP Databases 1 November 14th, 2007 02:12 AM
login script: user can't hit "return" for login dmerrill Java Basics 13 July 14th, 2006 07:25 PM
PHP Login script problem columbo1977 Beginning PHP 1 May 21st, 2006 10:47 PM
Auto Running a script. rupen Classic ASP Basics 3 July 19th, 2005 06:14 PM
login script problem hosefo81 PHP How-To 9 August 20th, 2004 11:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.