473,946 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Technique Questions

Recently I have been helping a nonprofit modify a system built in
Access, that they acquired from another nonprofit. I am doing this as a
volunteer.

I would like your perspective on two techniques I found in use as
compared to the technique I typically use.

Report Parameters
----------------
One thing I noticed is that the developer used a reports parameter form,
like I typically do, however, he saved the data to a single record table
and then included the appropriate fields necessary for selection for
each individual report as part of each report record. that is, he
included the user parm record in the query definition without any
relation to any other tables. He included the specific fields needed in
the query results.

This way he can specify criteria for the query using criteria data from
the record.

What I typically do is specify the criteria as referring to the field
name on the parameter form- FORMS!<FORMNAME >!<CONTROLNAM E>

Any opinions on which is a better technique?

Any one have an even better technique?

Description of numerically coded data in a report.
-------------------------------------------------

this author used various numeric codes to define types of people, status
of people, etc. A common technique. Typically there is a reference
table with the code and the description. the value is selected from a
drop down list box which shows the description but only the code is
stored in the record.

When printing report records, this author used a lookup process in the
definition of the description field. Example, using a field
FILLEDBYID the row source is

SELECT tblContact.Cont actID, FirstName &" " & LastName FROM tblContact
INNER JOIN tblContactType ON tblContact.Cont actID =
tblContactType. ContactID WHERE (((tblContactTy pe.ContactType) in(3,6)));

I tend to do a query relating the primary reporting table with the
contact master record, where the key of the contact record can be
related to the value in the primary table and then add the names to the
query for use in the report.

Any opinions on which is a better technique?

Any one have an even better technique?
Sep 10 '08 #1
2 1657
Regarding 'Report parameters'
=============== ======
My preferred approach is to use an unbound form where the user can enter the
criteria they want, and I build a WhereCondition string to filter the
report. The query itself does not refer to the text boxes on the form.

Why? Much more flexible and efficient. If you provide lots of boxes, and
several are left null, you just ignore them when you build the filter
string.

There are cases where this doesn't work well (such as for filtering a
subreport), so the parameters in the query itself is better.

Saving the parameters into a table makes no sense to me, unless you need to
be able to run the same report again later.

Regarding 'numeric key fields'
=============== ======
Could you use a combo box, where the bound column is zero-width? That way it
has the numeric value, but displays the text the user needs to see.

For simple lookup fields (such as types or categories), the category name
*is* unique, so is a perfect natural primary key. I don't see the point of
using an artifical key (such as AutoNumber) when a natural key exits.

If neither of those can work for you, you could include the lookup table in
the query that feeds the report, so you can filter on the text.

DLookup() is fine if you have to go that way.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bob Alston" <bo********@yah oo.comwrote in message
news:Eg******** ****@newsfe01.i ad...
Recently I have been helping a nonprofit modify a system built in Access,
that they acquired from another nonprofit. I am doing this as a
volunteer.

I would like your perspective on two techniques I found in use as compared
to the technique I typically use.

Report Parameters
----------------
One thing I noticed is that the developer used a reports parameter form,
like I typically do, however, he saved the data to a single record table
and then included the appropriate fields necessary for selection for each
individual report as part of each report record. that is, he included the
user parm record in the query definition without any relation to any other
tables. He included the specific fields needed in the query results.

This way he can specify criteria for the query using criteria data from
the record.

What I typically do is specify the criteria as referring to the field name
on the parameter form- FORMS!<FORMNAME >!<CONTROLNAM E>

Any opinions on which is a better technique?

Any one have an even better technique?

Description of numerically coded data in a report.
-------------------------------------------------

this author used various numeric codes to define types of people, status
of people, etc. A common technique. Typically there is a reference table
with the code and the description. the value is selected from a drop down
list box which shows the description but only the code is stored in the
record.

When printing report records, this author used a lookup process in the
definition of the description field. Example, using a field FILLEDBYID
the row source is

SELECT tblContact.Cont actID, FirstName &" " & LastName FROM tblContact
INNER JOIN tblContactType ON tblContact.Cont actID =
tblContactType. ContactID WHERE (((tblContactTy pe.ContactType) in(3,6)));

I tend to do a query relating the primary reporting table with the contact
master record, where the key of the contact record can be related to the
value in the primary table and then add the names to the query for use in
the report.

Any opinions on which is a better technique?

Any one have an even better technique?
Sep 10 '08 #2
Bob Alston <bo********@yah oo.comwrote:
>Report Parameters
----------------
One thing I noticed is that the developer used a reports parameter form,
like I typically do, however, he saved the data to a single record table
and then included the appropriate fields necessary for selection for
each individual report as part of each report record. that is, he
included the user parm record in the query definition without any
relation to any other tables. He included the specific fields needed in
the query results.

This way he can specify criteria for the query using criteria data from
the record.

What I typically do is specify the criteria as referring to the field
name on the parameter form- FORMS!<FORMNAME >!<CONTROLNAM E>

Any opinions on which is a better technique?
Like Allen I use an unbound reports parameter form. See
http://www.granite.ab.ca/accsrprt.htm for what I do including screen shot and some
sample VBA code.

However I use the filter property of the report in the reports Open event as that is
required when using Lebans PDF file utility and such.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Sep 11 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2920
by: Raptor | last post by:
I know it's bordeline off topic, but this is a subject which concerns many and is not frequently discussed. How about: bid the project at your usual rate, but bid a much lower rate beyond the expected project duration. This gives the client a fair fee for service, but protects both sides from a screw-up, while "punishing" the contractor (me) for screwing up the bid. You still have to manage the project's scope and snuff the usual...
3
2145
by: Jack Klein | last post by:
I'm looking for opinions on a C technique I, and others, have used successfully in the past. While some people swear by, apparently others swear at it. Assume a part of a program too large to fit comfortably in a single source file, call it a "module". Let's call it "module A". Also assume for various reasons module A needs a private data store with static storage duration, accessible from files in more than one translation unit. ...
0
1416
by: deathyam | last post by:
Hi, I am writing an application in Excel 97 in which the users click a button and data is saved/read to and from an Access 97 database on the LAN. I am concerned about performance because there will be multiple users using it at the same time. Generally my technique for database reads is as follows: -I create parameter queries in the database. Doing so allows me to use a sort of 'function' paradigm. i.e. given x and y, query fn...
2
1480
by: Niklas Norrthon | last post by:
I want to share a technique I recently have found to be useful to get around some obstacles that data protection can raise. Consider the following class: // foo.h #ifndef H_FOO #define H_FOO class Foo
18
2381
by: xahlee | last post by:
Last year, i've posted a tutorial and commentary about Python and Perl's sort function. (http://xahlee.org/perl-python/sort_list.html) In that article, i discussed a technique known among juvenile Perlers as the Schwartzian Transform, which also manifests in Python as its “key” optional parameter. Here, i give a more detailed account on why and how of this construct. ----
8
1306
by: VB6Newbie | last post by:
Hi, I have just created an educational children's VB6 quiz program which has 10 questions and plays a sound file for each question. It has a counter to show the question number and the current score. At the end it displays the wrong answers and shows the correct solutions. Basically it's working really well though I doubt the code is elegant because it's my first app and I'm teaching myself. Having completed the 10 question quiz which sits...
3
4903
by: pragy | last post by:
Hey, can any one help me for writing a program of naive gauss elimintaion technique? It's a technique to solve system of simultaneous linear equations using matrix. thanks
15
1571
by: Man-wai Chang | last post by:
<form name="frmTest" type="submit" method="post"> <input type="textbox" name="txtA" size=10 value=""> <select name="cboB" value=""> <option value="1">1 <option value="2">1 </select> <input type="submit" name="cmdSave"> </form> Normally when I click cmdSave, the form will be submitted, with cmdSave
1
368
by: Ben Bacarisse | last post by:
cri@tiac.net (Richard Harter) writes: <snip> I too was going to mention the technique until I saw Eric's reply because in your sketch you said: | we have definitions like | | struct bobble_s {...};
0
10151
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9981
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10685
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9885
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7416
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6111
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4938
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.