Can anybody tell me how to use List View and Tree View controls in Access as we do in VB? For example, how can I link List View and Tree View control with tables or queries? How can I add/delete items to these controls?
To add something in a list view control you'll need to create a recordset and input your data into a table, after this you requery your list view control and the new data will apear.
Dim rs As Recordset
Set rs = CurrentDb.OpenRecordset("yourtable"
rs.AddNew
rs.Fields("register" = Me.ID_cc
rs.Update
rs.Close
Me.lstviewcontrol.Requery
To delete an information you should create a delete query and put a criteria (some control in your form) to delete a especific register.
DoCmd.OpenQuery "Delete Query"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.