In Episode 7 of My Treeview Project we're going to look at another approach to reading through our data and adding nodes to the treeview.
In Episode 7 of My Treeview Project we're going to look at another approach to reading through our data and adding nodes to the treeview.
Posted by
Stephen
at
6:00 AM | Permalink
|
I'm reading: My Treeview Project Episode 7 | Another Way To Read Through Your DataTweet this!
| Add This!
| Blog This |
3
comments
Labels: forms, My Treeview Project, Treeview, tutorial, working example
Here's another working Treeview example from the code archive at UtterAccess.
Quote: This little database illustrates the implementation of Microsoft Knowledge Base Article Q20981 (How to Fill a Treeview Control Recursively). In addition, frmFolderExamples illustrates one way to fill the Treeview Control with the names of the folders located on a drive. It also shows how to return some of the properties of the treeview nodes as well as how to clear a treeview. I use some code harvested from Candace Tripp’s Browse and Open Files Database as well as ideas from Luiz Cláudio’s Treeview Control for Database Objects.
Posted by
Stephen
at
10:02 AM | Permalink
|
I'm reading: Treeview Example- Filling Recursively, Populating With Names of FoldersTweet this!
| Add This!
| Blog This |
0
comments
Labels: forms, Treeview, working example
Lately I've built some really neat forms where the controls are moved based on the size of the form or in response to use input. It's not so hard to change the position of a control and it can make for a really well optimized user interface.
One of the particular challenges when moving controls is keeping the controls on a tab control in their proper place. If you move a tab control the controls on the tabs don't move on their own. A.D. Tejpal recently posted this sample database on Rogers Access Library that demonstrates enumerating the controls on each page of the tab control and moving them all so that they all stay together and stay in the right place on the tab control.
Posted by
Stephen
at
3:40 PM | Permalink
|
I'm reading: Dymanic Forms: Moving Controls Along With The Tab Control They're Part OfTweet this!
| Add This!
| Blog This |
1 comments
Labels: dynamic forms, forms, working example
"I have two combo boxes on my form. When the user makes a choice in one I want the choices in the other on to change. For example the user will pick a country in the first combo box and the second combo box will now show only cities in that country. How do I do that?"
That's commonly called Cascading Combo Boxes and is one of the most commonly asked about techniques. I ran across a new article on this topic the other day. This a blog post from the Microsoft Access team that points out two different ways to get an Access 2007 sample database that demonstrates and explains two simple approaches to cascading combo boxes.
See also: all my Cascading Combo Box posts.
Posted by
Stephen
at
6:00 AM | Permalink
|
I'm reading: Access 2007 Sample Database Demomstrating Cascading Combo BoxesTweet this!
| Add This!
| Blog This |
0
comments
Labels: cascading combo boxes, forms, working example
This (at long last) is Episode 6 of My Treeview Project.
Posted by
Stephen
at
9:11 PM | Permalink
|
I'm reading: My Treeview Project | Episode 6: Images for the NodesTweet this!
| Add This!
| Blog This |
17
comments
Labels: forms, My Treeview Project, Treeview, tutorial, working example
Access is great at forms that are bound to tables in data. But sometimes there's value in creating an "unbound form". The data is stored in the controls on the form and your code saves it to the table (or tables) when the user clicks the save button. You might do this when the structure of your data is not ideal for your form- a survey database for example.
This post provides a working example of an unbound form complete with undo and redo buttons.
Posted by
Stephen
at
12:31 PM | Permalink
|
I'm reading: Unbound Form With Undo and RedoTweet this!
| Add This!
| Blog This |
0
comments
Labels: forms, Unbound form, working example
Here's a treeview article I haven't run across before: Access TreeView-ListView Basics from Database Journal walks the reader through creation of a form with a treeview and a listview.
It doesn't have a detailed explanation of how it works, but it does include a downloadable working example, and the zip file for the example includes the elusive help file that covers the treeview and listview controls- very handy! The code uses the "one pass" approach to loading the treeview- a single query is used that brings in all books, and whenever a new bookstore is encountered that node is added.
Posted by
Stephen
at
4:41 PM | Permalink
|
I'm reading: Access TreeView-ListView Basics from Database JournalTweet this!
| Add This!
| Blog This |
0
comments
Labels: Listview, reference documentation, Treeview, working example
I find that looking at a demonstration or sample database is a great way to learn more about Access. Microsoft has some great samples databases here on Micorsoft Office Online. that demonstrate some really neat techniques for forms, reports, and queries.
Posted by
Stephen
at
8:30 AM | Permalink
|
I'm reading: Sample Access Databases From Office OnlineTweet this!
| Add This!
| Blog This |
0
comments
Labels: forms, queries, reports, working example
Posted by
Stephen
at
7:29 PM | Permalink
|
I'm reading: Appointment Calendar From the UtterAccess Code ArchiveTweet this!
| Add This!
| Blog This |
1 comments
Labels: calendar, forms, working example
In episode 5 we'll make the treeview really do domething. We'll use it to select records from the products and categories tables that we want to see or edit. The work you'll have to do in this episode is a little more than in the last two, but we'll go through it step-by-step. We're building on the work you've done in previous episodes.
Posted by
Stephen
at
8:21 PM | Permalink
|
I'm reading: My Treeview Project | Episode Five: Using The Treeview To Select Records to View/EditTweet this!
| Add This!
| Blog This |
20
comments
Labels: forms, My Treeview Project, Treeview, tutorial, working example
with a drag and drop function used to change who staff report to and another to drag unassigned orders from a listview into the treeview where you drop them on the staff that will work on them. A nice implementation indeed.
Posted by
Stephen
at
6:00 AM | Permalink
|
I'm reading: A Working Treeview Example with Drag and DropTweet this!
| Add This!
| Blog This |
4
comments
Labels: forms, Listview, Treeview, vba, working example
Treeview continues to be one of the most common of the search keywords that bring folk to MyMSAccessBlog. I love developing with treeviews and if I can narrow down the specific questions folk are searching for answers to I'll post some detailed tips or solutions. For now, here's here's a zip file from Helen Feddema's Access Archon page with a working example:
The example uses a treeview to select books or authors to display information about.Quote:
A TreeView control makes a better record selector than the standard combo box for situations where you are working with hierarchical data, and want to allow selection of an item from a branch of the data hierarchy.
For all my treeview posts click here.
Posted by
Stephen
at
7:37 PM | Permalink
|
I'm reading: Using a TreeView Control as a Record SelectorTweet this!
| Add This!
| Blog This |
7
comments
Labels: Treeview, vba, working example
Treeviews are one of my favourite user interface components to develop with. But judging by the questions on the discussion forums, a lot of folk have trouble getting started with them. Here's a simple working example from the code archive at www.UtterAccess.com.
Posted by
Stephen
at
6:00 AM | Permalink
|
I'm reading: Working Treeview ExampleTweet this!
| Add This!
| Blog This |
0
comments
Labels: forms, Treeview, working example
Tag cloud code courtesy of phydeaux3
UtterAccess is the web's leading help forum for Microsoft Access. The community of Access enthusiaists who post there provide help to newbies and veterans alike, always in a friendly and supportive manner.
Access 2003 resource Centre on MSDN
Access Developer Portal on MSDN
Allen Browne's tips for Microsoft Access Allen Browne is one of the web's leading authorities on Access. Several of his articles are the standard reference for the topic at hand. Allen is also the most often cited cataloguer of Access bugs and the related work-arounds.
The Access Web This site, established way back in '98, features tips and solutions from several Access MVPs. The code samples posted here are always clean and effective. Often you won't find a lot of text, but you will find code that works. The solutions here are cited all over the web as the best way to get things done.
Stephen Lebans' site is the authority on the web for some types of solutions. It's a site every Access developer should know. You'll find tips, plus downloadable working solutions ranging from zooming images in and out, to disabling the mouse scroll wheel, to a calendar, to creating PDF files. In particular I look to Stephen's site first for advanced topics related to forms and reports, especially interacting with the Windows API.
Candace Tripp's Utter Angel page is another often-cited resource. she posts simple working solutions for download. No Access/VBA links page is complete without Candace's page.