Advertise here: Contact FM.


VB in the tree
October 21, 2007 9:39 PM   RSS feed for this thread Subscribe

vbFilter: Outputting results to a treeview object in Excel.

Currently I am working on a script that will query an access DB and look for the first 4 users that's dates are less than 5 days of the current date which is shown below.

The current script is running in Excel's VB compiler. The one thing I want to do is output the results to a treeview object in excel.

Private Sub UserForm_Initialize()
Label1.Caption = Date
On Error GoTo Error
Dim cnn As New ADODB.Connection
Dim rst As New ADODB.Recordset
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=F:\SAIO\Users.mdb"
Dim i As Integer
rst.Open "SELECT [ntlogin] FROM [scon] GROUP BY [ntlogin]" & _
" HAVING (Max([date]) <>


-- Feel free to probe me for more information if you need.
posted by dnthomps to computers & internet (1 comment total)
It did not like the code. Maybe I am missing something (code tag?).

Anyways, here is a txt file.
posted by dnthomps at 9:44 PM on October 21, 2007


« Older Is there a way to get Word to ...   |   I have a 2.33 Core 2 Duo Macbo... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
vb.net for dummies March 19, 2008
Excel: moving data from multiple columns to a... August 17, 2006
How do I get the names of an ActiveX control's... July 20, 2006
Visual Basic 6 Date Comparison by Month April 5, 2006
Is there any way to make Excel macros less stupid?... January 5, 2005