dbTalk Databases Forums  

ShowUserRosterMultipleUsers in Access2010

comp.databases.ms-access comp.databases.ms-access


Discuss ShowUserRosterMultipleUsers in Access2010 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
elg
 
Posts: n/a

Default ShowUserRosterMultipleUsers in Access2010 - 12-27-2010 , 11:07 AM






Function ShowUserRosterMultipleUsers()
'Source: kb 198755.
Dim cn As New ADODB.Connection
'Dim cn2 As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim i, j As Long

cn.Provider = "Microsoft.Jet.OLEDB.4.0" <<<- what would
this be for .accdb ?
cn.Open "Data Source=C:\Data\Northwind2003.mdb"

The above is from Allen Browne's (much appreciated) website. Problemo
is that this is Ok on Access2k or .MDB databases but what does the
cn.provider need to change to for .accdb databases, Ac2007 & AC2010?

(I use this in Ac2000 to count users as it's the only reliable way. I
did have a user table to check for users login and logout. Which was
fine when users closed the FE correctly. Only problem is that some
users, well quite a few actually) don't. So when they open up later
they are still flagged as being linked in. This function gives me
control of the number of users, which is what I want.)

Reply With Quote
  #2  
Old   
bsn
 
Posts: n/a

Default Re: ShowUserRosterMultipleUsers in Access2010 - 12-27-2010 , 04:44 PM






"elg" <envirocomp (AT) ukonline (DOT) co.uk> skrev
Quote:
Function ShowUserRosterMultipleUsers()
'Source: kb 198755.
Dim cn As New ADODB.Connection
'Dim cn2 As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim i, j As Long

cn.Provider = "Microsoft.Jet.OLEDB.4.0" <<<- what would
this be for .accdb ?
cn.Open "Data Source=C:\Data\Northwind2003.mdb"

The above is from Allen Browne's (much appreciated) website. Problemo
is that this is Ok on Access2k or .MDB databases but what does the
cn.provider need to change to for .accdb databases, Ac2007 & AC2010?
Look here :
http://www.utteraccess.com/forum/Con...-t1946959.html

Bjarne

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.