Access says I

Here I sit before a mostly empty screen.  Mostly because on the left hand side are a bunch of objects I created on SQL 2008 R2.  The data warehouse side of the system I’m working on.  Why access, why not .Net?  Granted, behind the scenes I am working on a SharePoint 2010 BCD project regarding the same data.  The reason is simple, I need to create a web-able application that can be used right now.   Having used Access for a long time keeping up skills with the new version is also important.  Viva la multi-task!  Or was that Multi-Pass?  Can you say the 5th Element?

The One Liner Report and other requirements

For this project to meet the minimum functionality requirements it needs to produce a one liner report and a detail report.  Report in this sense is not necessary an actual report (though with Access that structure is certainly within bounds) but of a data grid and detail view of a single record.


And the Detail form similar to:


Simple right?

Background Noise

Ok, before we can get to the One Liner and all the goodness there, some background notes on the data warehouse staging database is needed.  First, notice that this is the staging database that is being used.  I wish time allowed for the DW to be fully vetted into a cube but that definition and design effort is still a ways off.  The mandate is that the data needs to start producing results now.  I can only dream about the eventual cube.  The basic design around data collection into the staging database is a forward moving dataset.  What I mean by that is that records are only appended so that the historical state of a given transaction is preserved.  The requirement for this report is that it is a snapshot in time reflecting the current state of all transactions at that given point.  This is easily facilitated through using the primary key on the data table that combines the unique id of the transaction plus the date of the transaction .

The One Liner Definition

There are three sources of data for this report.  Public records, and records from two internal systems.  Step one, develop a one liner form that matches the top diagram.  So I start with this…


I already have a view from SQL I want to use so that will be my data source.

Since this is a wide view, I’ll use a query within access to filter down to just the data required.  The view has already been flattened out to some degree so it will be necessary to restrict the data down to only the master list.  Easy to accomplish through the query property view.


The query now returns only about 2k records instead of the 27k returned the first time.  Pretty close to the one liner definition.  A little formatting and then I’ll create the detail form before finishing the one liner report.  Saved off the query with a distinctive name and it is now an available object to use.  I can use the Unique Values property in this query against the query that I set up in SQL because I already scoped the data using only the latest values for each distinct master record.

Something like…


This means that the query that is set up only returns a list restricted to the Master Data Record dataset.


The Detail Report…

Next an additional query needs to be set up that takes a parameter and returns…


I test the query first.  I expect that even though I only put in a single office number, I should get more than one row back.  This is expected and the properties should be changed as above so that only unique data comes back.

The parameter box pops up as expected;


Using a known Office number that will have multiple entries, the query is executed.


Setting properties to Unique changes 1 of 24 to;


The query is saved and now there are two.  Notice the original query, One Liner Source name has been changed to One Liner Source View for consistency.


Still no forms yet.

Form Story

The first form to be created will be the form for the one liner report.  The concept for this form is a table with some formatting.


By simply having the dataset selected and clicking on the form Multiple Items form selection, Access automatically builds the form.


For the Detailed view, the Form Wizard will be used…


Using all the fields and a Justified form template…


And giving it a nice name…


Clicking on Finish results in the challenge box…


The wizard will make it’s best guess on how to set up the form but you’ll probably need to go into design mode to set it up how you want it to look.


Make sure to grab the move box if you want to separate the data field  from the label field.


Depending on your Mouse to Hand to Eye coordination, the Size and Order features really help cleaning up the form.

Applying an input mask can help format the data.


Long Story Short

The current prototype has been well accepted.  Next article will be utilizing the same prototype and pushing it up to SharePoint.

Published by


Originally, this was a pretty darn boring post. Kinda like... Well I won't go there. Perhaps its still on the robotic side but... I could say I like music. Safe, generic and non-comittal. Or, I could say that I've been having a blast tuning up my old guitars, getting blisters on my fingers and turning the amp up past 2. Amazaing what a little overdrive and a half pressed wahwah pedal can do for a sound. Get that cool "Money for Nothin" vibe happening. I get a real kick out of reading old Sci Fi. Reading Asimov's vision about the future is really entertaining now. When he wrote much of the material, the items that were futuristic were day to day tools I used in the early part of my career. Microfiche and the like. I also remember that upstart Microsoft and MS DOS...and can you say Lotus 123? So maybe this is a little better than "I like to read and play music". My career is focused on Team Leadership and Technology. Both share the attributes of continual growth and education. Currently, I manage a team of 4 programmers as direct reports. I've been in this role since 08/2007. Prior to that, I was the team lead (on site) for integration with the customer. Customers ranged from local government to manufacturing and medical. Teams ranged in size from one to six additional team members. On the other side is technology. I've been keeping current with .net technologies focusing on C# and Sharepoint (2007/2010). Specialties Team Building and Management Technical Staff Recruiting Microsoft Visual Studio 7 through 2010 (VB.NET and C#.NET) Microsoft SQL Server 6.5-2008R2 (DTS, TSQL, SSIS, SSAS, and SSRS ) SharePoint 2010 (Office Integration, InfoPath, Site Management and planning) Windows Server 2008 R2 AD DS PowerShell Techology analysis Puchasng and working with vendors Microsoft licensing management and compliance Business Systems Analysis Traning plans Mentoring Training coordination.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s