web site = Its a front Page Website
and the database is in the fpdb folder
the datbase name is users.mdbThere is no password on the database but there is a username and password to get into the WEB site
the username is happyuser and p_ssw_rd is unhappy
I need a connection string
ADO if possible
I want to do this in a local Access database this is what I got from somewhere else
DougP, MCP, A+
and the database is in the fpdb folder
the datbase name is users.mdbThere is no password on the database but there is a username and password to get into the WEB site
the username is happyuser and p_ssw_rd is unhappy
I need a connection string
ADO if possible
I want to do this in a local Access database this is what I got from somewhere else
Code:
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
'Create a new ADO Connection object
Set cn = New ADODB.Connection
cn.Open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=http:\\[URL unfurl="true"]www.mysite.com\fpdb\users.mdb"[/URL]
'set its properties
Set rs = New ADODB.Recordset
With rs
Set .ActiveConnection = cn
.Source = "SELECT PartNo, Count(Inventory.PartNo) AS CountOfPartNo FROM Inventory"
.LockType = adLockOptimistic
.CursorType = adOpenKeyset
.Open
End With
rs.MoveLast
rs.MoveFirst
DougP, MCP, A+