weightinwildcat
Programmer
Is there any way if I can detect that another Access front end is open from my front end?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function LDBViewer2010()
'Reference Microsoft ActiveX Data Objects for this code to work
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Const conDatabase As String = "L:\HR Database\Employee Management Tool\Employee Management Tool.accde"
' Open connection to Access backend
cn.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & conDatabase & ";Persist Security Info=False;"
' Open recordset
Set rs = cn.OpenSchema(adSchemaProviderSpecific, , "{947bb102-5d43-11d1-bdbf-00c04fb92675}")
'Output the field list
Debug.Print rs.Fields(0).Name, "|", rs.Fields(1).Name, "|", rs.Fields(2).Name, "|", rs.Fields(3).Name
Forms!names.Text0.Value = ""
allval = ""
'Loop through users recordset of users in database.
While Not rs.EOF
allval = allval & vbCrLf & Trim(rs.Fields(0))
rs.MoveNext
Wend
Forms!names.Text0.Value = allval
DoEvents
' Close
If rs.State <> adStateClosed Then rs.Close
Set rs = Nothing
Set cn = Nothing
End Function