Dear all,
I would like to display the results of an sql query on a form. However, the data I want to display are 'confidential' (system, userid & password). One user can have access to several systems.
I have a back end database where are the data is stored. This back end is password protected.
The front end consists of 1 form which allows users to connect to the back end and retreive only their personal records.
So far so good. I'm able to retreive the information and debug.print it. But what is the easiest way to display the information on a form?
I would like to display the results of an sql query on a form. However, the data I want to display are 'confidential' (system, userid & password). One user can have access to several systems.
I have a back end database where are the data is stored. This back end is password protected.
The front end consists of 1 form which allows users to connect to the back end and retreive only their personal records.
So far so good. I'm able to retreive the information and debug.print it. But what is the easiest way to display the information on a form?
Code:
Dim cnnbe As New ADODB.Connection
Dim rstbe As ADODB.Recordset
'connect to back end
cnnbe.Open "Provider=microsoft.jet.oledb.4.0;" & _
"data source = C:\Documents and Settings\hbrems\" & _
"Desktop\Accounts\Accounts.mdb;"
'create recordset
Set rstbe = New ADODB.Recordset
rstbe.Open "SELECT * FROM tbluuid " & _
"WHERE tbluuid.flduuname = " & Chr(34) & txtusername & Chr(34), cnnbe
'clean
rstbe.Close
Set rstbe = Nothing
MsgBox "Done"