SlideShare a Scribd company logo
1 of 27
An ABeCedary
of Access Tips
EndeavorUsersGroupMeeting2006
Alan Manifold
Senior Administrator,
Library Enterprise Applications
Purdue University Libraries
manifold@purdue.edu
AGGREGATEFUNCTIONS
Aisfor
Click the sigma
(Σ) to get the
“Total:” line.
For each unique
combo of “Group
By” lines, you’ll get
one record in your
results.
Agriculture Lib 35543
Chemistry Lib 8664
Engineering Lib 193455
Geology Lib 3643
Humanities Lib 242576
Life Sci Lib 57344
Mathematics Lib 16634
…
BETWEENOPERATOR
Bisfor
Between is inclusive at both ends:
Between 5 and 9
matches
5 6 7 8 9 10
5.5 6.5 7.5 8.5 9.5
Between #4/21/2006# And #4/22/2006#
21 April 2006 22 April 2006
16 816 16 16 16 16 16
0/24 0/24 0/24 0/24 0/24 0/24 0/24
But a date range runs from midnight at the
start of the first day to midnight of the last:
CRITERIA
Cisfor
In your criteria, the In operator executes
much faster than the Or operator
Instead of:
Use:
Better yet, make
your query self-
documenting by
using text fields,
not idiot numbers:
DIAGRAMS,CLASS(formerlyE-R)
Disfor
For each CAT_PROFILE
record, there are 0, 1 or
more CAT_OPERATOR
records. There’s 1 C_P
record for each C_O rec.
For each
C_O rec,
there is 1
OP rec. An
OP rec can
have 0 or 1
C_O recs.
EXPRESSIONS
Eisfor
You can use expressions to get the exact
results you want:
Instead of:
AMT
DEWEYNUM
CITY
CDATE
LNAME
#04/22/2005#
ALLOC1
CHGS
GetFieldRaw(***)
Perhaps you could use:
CCur(AMT/100)
Left(DEWEYNUM, 3)
UCase(CITY)
Month(CDATE)
LNAME & “, ” & FNAME
DateAdd(“yyyy”, -1, Date())
ALLOC1 – ALLOCDEC
Val(CHGS) + Val(BRWS)
Mid(GetFieldRaw(***), 4, 1)
Format()(andotherdate/timefunctions)
Fisfor
Format(Date(), “mm/dd/yyyy”)
--04/22/2006
Format(Date(), “dddd”)
--Saturday
Format(Date(), “hh:mm:ss”)
--14:18:54
Format(Date(), “hh:mm:ss ampm”)
--02:18:54 pm
DateAdd(“m”, 3, CHARGE_DATE)
--adds 3 months to the charge date
Date fields are always Date/Time fields, so
you have to take that into account when
you specify criteria or do comparisons.
GenericCriteriaInGetField*()
Gisfor
The three GetField* functions
and GetSubField are used to
get data out of the “BLOBs”.
All three can handle “generic”
GetField(GetMFHDBLOB(MFHD_ID), “866”, 1)
--gets the first 866 field
GetFieldAll(GetBibBLOB(BIB_ID), “6”)
--gets all 6XX fields
GetFieldRaw(GetAuthBLOB(AUTH_ID), “1”, 1)
--gets the first (only) 1XX field
GetSubField(***stuff***, “”, 1)
--gets the first subfield (whatever it is)
criteria, by shortening the “Tag” parameter.
HIDDENOBJECTS
Hisfor
Changing the
ViewHidden
Objects option to
“On” allows you to
see and change
hidden modules
IIf()FUNCTION
Iisfor
In programming
languages, you
may use code
like this for a
“conditional”:
if (sun = up) then
“day”;
else
“night”;
In Access, the IIf() (Immediate If) function
does the same thing:
IIf(sun = up, “day”, “night”)
PH: IIf([PHONE_NUMBER] Is Null,
“NO PHONE”, [PHONE_NUMBER])
You can find lots of uses for it in queries:
ITEM INNER JOIN ITEM_BARCODE
ITEM LEFT JOIN ITEM_BARCODE
ITEM RIGHT JOIN ITEM_BARCODE
ITEM
ITEM_BARCODE
INNER JOIN
LEFT JOIN
RIGHT JOIN
JOINS:INNER,LEFT&RIGHT
Jisfor
SAMPLE TABLES
KEYFIELDS
Kisfor
Key fields are the ones that uniquely
identify specific records in a table.
Sometimes they are simple, sometimes
they are composite. Some examples:
Table Key field(s)
BIB_TEXT BIB_ID
LEDGER LEDGER_ID
BIB_MFHD BIB_ID & MFHD_ID
FUND LEDGER_ID & FUND_ID
SERIAL_ISSUES COMPONENT_ID
& ISSUE_ID
FINE_FEE FINE_FEE_ID
FREQUENCY FREQUENCY_CODE
LikeOPERATOR
Lisfor
Use the Like operator in your criteria to
match patterns for text fields. A star will
match any sequence of 0 or more chars.
“main”, “maintain”, “main street”…
“refe”, “ugrl,refe”, “phys,refe”…
“her”, “helecopter”, “his mother”…
“ser”, “serial”, “loser”, “reserves”…
Like “main*”
Like “*refe”
Like “h*er”
Like “*ser*”
Criterion Matches
You can even use this when you prompt
for criteria by concatenating an asterisk:
Like [Fund name prefix:] & “*”
Like [First initial of patron surname?] & “*”
MAKETABLEQUERIES
Misfor
If a query (such as a BLOB query) is going
to run a long time, you can use a “Make
Table” query to keep the results so you
don’t have to run it twice.
NOTRESPONDING
Nisfor
Normally when a Windows task status is
“Not Responding”, the task is frozen and
can be ended. But Voyager/Access
queries will often be in this status as
they run, and will eventually wake up.
Or(ANDOTHERBOOLEANOPERATORS)
Oisfor
OR
AND
NOT
For criteria on a single field, type the
Boolean
operators
into the
Criteria line.
For “OR’ed” criteria on multiple fields, also
use the “or:” line and lines below it.
PROMPTINGFORCRITERIA
Pisfor
The easiest way to make your queries
more flexible is to substitute prompts for
“hard-code” criteria beneath fields.
Instead of:
>= #4/1# And
< #5/1#
“stacks”
> 500
Like “*refe”
In(“abm”, “Abm”,
“ABM”)
Try using:
>= [Starting date:] And
< [Ending date:]
[Location code:]
< [Minimum Amount?]
Like “*” & [Subloc:]
UCase([Initials?])
and UCase(field), too
QUERIESWITHSUBQUERIES
Qisfor
The results of a query looks just like a
table, so you can use a query in a query
REPORTSANDFORMS
Risfor
Reports can
finish off a
project nicely.
With a bit of
Visual Basic,
a form can
add a lot.
SQL-SPECIFICQUERIES
Sisfor
Some queries are
“SQL Specific”,
which means they must be
created in SQL View, not
in Design View. Of these,
UNION queries are the
most useful for Voyager.
SELECT * FROM [<query 1>]
UNION ALL
SELECT * FROM [<query 2>]
UNION ALL
SELECT * FROM [<query 3>];
Do queries
in Design
View, then
UNION them
with this
syntax.
TEXTFIELDFUNCTIONS
Tisfor
Use text functions with IIf() to do fancy text
processing:
Sample call Returns
InStr(MNOTE, “//”) 13
Mid(MNOTE, 7, 4) “call”
Mid(MNOTE, 15) “abm”
IIf(MNOTE, “//”) <> 0,
Mid(MNOTE, InStr(MNOTE, “//”) + 2),
“Not revised”)
Our sample field:
MNOTE = “Fixed call #//abm”
utf8to16()FUNCTION
Uisfor
Since Oracle encodes UNICODE fields in
utf8 and Access uses utf16, we have to
convert them.
UTF8 J a ̈ a ̈ s k e l a ̈
i
4A61CC8861CC88736B656C61CC8869
n e n , M a u n o
6E656E2C204D61756E6F
UTF16 J a ̈ a ̈ s k
004A00610308006103080073006B
e l a ̈ i n e n
0065006C006103080069006E0065006E
, M a u n o
002C0020004D00610075006E006F
Converted Jääskeläinen, Mauno
VIEWS
Visfor
SQL> set long 4000
SQL> select text from user_views
2 where view_name = 'DEWEYCLASS_VW';
TEXT
-------------------------------------------
select mfhd_id,
substr(normalized_call_no,0,3) as class,
substr(normalized_call_no,0,
instr(normalized_call_no,' ')-1)
as longclass
from mfhd_master
where call_no_type = '1'
Use a variant of this SQL*Plus query to
see the query behind any given view:
WIZARDS
Wisfor
Report Wizard:
GOOD!
Query Wizard:
BAD!
X,Active(ActiveX)
Xisfor
[Abecedary creators often cheat for X.]
Here, ActiveX stands for any Visual Basic.
oNewTable.Connect = sConnect
oNewTable.Attributes = dbAttachSavePWD
oDB.TableDefs.Append oNewTable
In the (hidden) module, “Connection
Code”, change this:
oNewTable.Connect = sConnect
oDB.TableDefs.Append oNewTable
To this:
You won’t have to type the userid and
password when you open your first table.
Year()(andotherDate/Timefunctions)
Yisfor
MyDate = #4/12/2006 11:45:57 PM#
Year(MyDate) = 2006
Month(MyDate) = 4
Day(MyDate) = 12
Weekday(MyDate) = 4 (Wednesday)
Hour(MyDate) = 23
Minute(MyDate) = 45
Second(MyDate) = 57
You can use date/time functions like Year,
Month, Day, etc., to get specific parts of a
date/time field:
ZOOMWINDOW
Zisfor
Work on complex expressions is easier
with Zoom. Put your cursor in a field, then
type Shift-F2 or right click and select Zoom.

More Related Content

Viewers also liked

Presentatie Inholland 07-02-12
Presentatie Inholland 07-02-12Presentatie Inholland 07-02-12
Presentatie Inholland 07-02-12Isabel Mosk
 
Dpr disciplina siti habitat
Dpr disciplina siti habitatDpr disciplina siti habitat
Dpr disciplina siti habitatMarco Grondacci
 
alumnos ganadores
alumnos ganadoresalumnos ganadores
alumnos ganadoresanabalcazar
 
Inbetween days | sadi ranson in cyrano
Inbetween days | sadi ranson in cyranoInbetween days | sadi ranson in cyrano
Inbetween days | sadi ranson in cyranosadi ranson
 
Untitled magazinepdf
Untitled magazinepdfUntitled magazinepdf
Untitled magazinepdfTathan Hill
 
Ezra 10 commentary
Ezra 10 commentaryEzra 10 commentary
Ezra 10 commentaryGLENN PEASE
 
2011 dr콩고개황
2011 dr콩고개황2011 dr콩고개황
2011 dr콩고개황drtravel
 
Empowering Brand Ambassadors #DTCNorway13
Empowering Brand Ambassadors #DTCNorway13 Empowering Brand Ambassadors #DTCNorway13
Empowering Brand Ambassadors #DTCNorway13 Isabel Mosk
 
1.5 ghid abatoare draft final
1.5 ghid abatoare draft final1.5 ghid abatoare draft final
1.5 ghid abatoare draft finalxalagun
 
Vabilo Rojstni Dan
Vabilo Rojstni DanVabilo Rojstni Dan
Vabilo Rojstni DanMini sport
 
Wha costech 취급목록
Wha costech 취급목록Wha costech 취급목록
Wha costech 취급목록4197740
 

Viewers also liked (16)

Presentatie Inholland 07-02-12
Presentatie Inholland 07-02-12Presentatie Inholland 07-02-12
Presentatie Inholland 07-02-12
 
Naveed Abbasi(Resume)
Naveed Abbasi(Resume)Naveed Abbasi(Resume)
Naveed Abbasi(Resume)
 
11.11.2015
11.11.201511.11.2015
11.11.2015
 
Astroemagazine n17
Astroemagazine n17Astroemagazine n17
Astroemagazine n17
 
Dpr disciplina siti habitat
Dpr disciplina siti habitatDpr disciplina siti habitat
Dpr disciplina siti habitat
 
alumnos ganadores
alumnos ganadoresalumnos ganadores
alumnos ganadores
 
Inbetween days | sadi ranson in cyrano
Inbetween days | sadi ranson in cyranoInbetween days | sadi ranson in cyrano
Inbetween days | sadi ranson in cyrano
 
Abdest
AbdestAbdest
Abdest
 
Untitled magazinepdf
Untitled magazinepdfUntitled magazinepdf
Untitled magazinepdf
 
Ezra 10 commentary
Ezra 10 commentaryEzra 10 commentary
Ezra 10 commentary
 
Barnes mallarme
Barnes mallarmeBarnes mallarme
Barnes mallarme
 
2011 dr콩고개황
2011 dr콩고개황2011 dr콩고개황
2011 dr콩고개황
 
Empowering Brand Ambassadors #DTCNorway13
Empowering Brand Ambassadors #DTCNorway13 Empowering Brand Ambassadors #DTCNorway13
Empowering Brand Ambassadors #DTCNorway13
 
1.5 ghid abatoare draft final
1.5 ghid abatoare draft final1.5 ghid abatoare draft final
1.5 ghid abatoare draft final
 
Vabilo Rojstni Dan
Vabilo Rojstni DanVabilo Rojstni Dan
Vabilo Rojstni Dan
 
Wha costech 취급목록
Wha costech 취급목록Wha costech 취급목록
Wha costech 취급목록
 

Similar to An Abecedary of Access Tips with the Voyager Integrated Library System

advancedzplmacroprogramming_081820.pptx
advancedzplmacroprogramming_081820.pptxadvancedzplmacroprogramming_081820.pptx
advancedzplmacroprogramming_081820.pptxssuser6a1dbf
 
Fortran & Link with Library & Brief Explanation of MKL BLAS
Fortran & Link with Library & Brief Explanation of MKL BLASFortran & Link with Library & Brief Explanation of MKL BLAS
Fortran & Link with Library & Brief Explanation of MKL BLASJongsu "Liam" Kim
 
MySQL Optimizer: What's New in 8.0
MySQL Optimizer: What's New in 8.0MySQL Optimizer: What's New in 8.0
MySQL Optimizer: What's New in 8.0Manyi Lu
 
Advanced_SQL_ISASasASasaASnjection (1).ppt
Advanced_SQL_ISASasASasaASnjection (1).pptAdvanced_SQL_ISASasASasaASnjection (1).ppt
Advanced_SQL_ISASasASasaASnjection (1).pptssuserde23af
 
Les07[1]Multiple-Column Subqueries
Les07[1]Multiple-Column SubqueriesLes07[1]Multiple-Column Subqueries
Les07[1]Multiple-Column Subqueriessiavosh kaviani
 
PL/SQL User-Defined Functions in the Read World
PL/SQL User-Defined Functions in the Read WorldPL/SQL User-Defined Functions in the Read World
PL/SQL User-Defined Functions in the Read WorldMichael Rosenblum
 
What's New in ES6 for Web Devs
What's New in ES6 for Web DevsWhat's New in ES6 for Web Devs
What's New in ES6 for Web DevsRami Sayar
 
Fitc whats new in es6 for web devs
Fitc   whats new in es6 for web devsFitc   whats new in es6 for web devs
Fitc whats new in es6 for web devsFITC
 
Conf soat tests_unitaires_Mockito_jUnit_170113
Conf soat tests_unitaires_Mockito_jUnit_170113Conf soat tests_unitaires_Mockito_jUnit_170113
Conf soat tests_unitaires_Mockito_jUnit_170113SOAT
 
Meg bernal insight2014 4219
Meg bernal insight2014 4219Meg bernal insight2014 4219
Meg bernal insight2014 4219Peter Schouboe
 
XMLDB Building Blocks And Best Practices - Oracle Open World 2008 - Marco Gra...
XMLDB Building Blocks And Best Practices - Oracle Open World 2008 - Marco Gra...XMLDB Building Blocks And Best Practices - Oracle Open World 2008 - Marco Gra...
XMLDB Building Blocks And Best Practices - Oracle Open World 2008 - Marco Gra...Marco Gralike
 
ELK Syslog server - Kibana
ELK Syslog server - KibanaELK Syslog server - Kibana
ELK Syslog server - KibanaEric van Dijken
 
libinjection and sqli obfuscation, presented at OWASP NYC
libinjection and sqli obfuscation, presented at OWASP NYClibinjection and sqli obfuscation, presented at OWASP NYC
libinjection and sqli obfuscation, presented at OWASP NYCNick Galbreath
 
Practicas oracle10g
Practicas oracle10gPracticas oracle10g
Practicas oracle10grehoscript
 
35787646 system-software-lab-manual
35787646 system-software-lab-manual35787646 system-software-lab-manual
35787646 system-software-lab-manualNaveen Kumar
 
OLAP Reporting In CR v2
OLAP Reporting In CR v2OLAP Reporting In CR v2
OLAP Reporting In CR v2Mickey Wong
 

Similar to An Abecedary of Access Tips with the Voyager Integrated Library System (20)

advancedzplmacroprogramming_081820.pptx
advancedzplmacroprogramming_081820.pptxadvancedzplmacroprogramming_081820.pptx
advancedzplmacroprogramming_081820.pptx
 
Fortran & Link with Library & Brief Explanation of MKL BLAS
Fortran & Link with Library & Brief Explanation of MKL BLASFortran & Link with Library & Brief Explanation of MKL BLAS
Fortran & Link with Library & Brief Explanation of MKL BLAS
 
MySQL Optimizer: What's New in 8.0
MySQL Optimizer: What's New in 8.0MySQL Optimizer: What's New in 8.0
MySQL Optimizer: What's New in 8.0
 
Spock Framework
Spock FrameworkSpock Framework
Spock Framework
 
Advanced_SQL_ISASasASasaASnjection (1).ppt
Advanced_SQL_ISASasASasaASnjection (1).pptAdvanced_SQL_ISASasASasaASnjection (1).ppt
Advanced_SQL_ISASasASasaASnjection (1).ppt
 
Les07[1]Multiple-Column Subqueries
Les07[1]Multiple-Column SubqueriesLes07[1]Multiple-Column Subqueries
Les07[1]Multiple-Column Subqueries
 
Securefile LOBs
Securefile LOBsSecurefile LOBs
Securefile LOBs
 
pm1
pm1pm1
pm1
 
PL/SQL User-Defined Functions in the Read World
PL/SQL User-Defined Functions in the Read WorldPL/SQL User-Defined Functions in the Read World
PL/SQL User-Defined Functions in the Read World
 
What's New in ES6 for Web Devs
What's New in ES6 for Web DevsWhat's New in ES6 for Web Devs
What's New in ES6 for Web Devs
 
Advanced sql injection 2
Advanced sql injection 2Advanced sql injection 2
Advanced sql injection 2
 
Fitc whats new in es6 for web devs
Fitc   whats new in es6 for web devsFitc   whats new in es6 for web devs
Fitc whats new in es6 for web devs
 
Conf soat tests_unitaires_Mockito_jUnit_170113
Conf soat tests_unitaires_Mockito_jUnit_170113Conf soat tests_unitaires_Mockito_jUnit_170113
Conf soat tests_unitaires_Mockito_jUnit_170113
 
Meg bernal insight2014 4219
Meg bernal insight2014 4219Meg bernal insight2014 4219
Meg bernal insight2014 4219
 
XMLDB Building Blocks And Best Practices - Oracle Open World 2008 - Marco Gra...
XMLDB Building Blocks And Best Practices - Oracle Open World 2008 - Marco Gra...XMLDB Building Blocks And Best Practices - Oracle Open World 2008 - Marco Gra...
XMLDB Building Blocks And Best Practices - Oracle Open World 2008 - Marco Gra...
 
ELK Syslog server - Kibana
ELK Syslog server - KibanaELK Syslog server - Kibana
ELK Syslog server - Kibana
 
libinjection and sqli obfuscation, presented at OWASP NYC
libinjection and sqli obfuscation, presented at OWASP NYClibinjection and sqli obfuscation, presented at OWASP NYC
libinjection and sqli obfuscation, presented at OWASP NYC
 
Practicas oracle10g
Practicas oracle10gPracticas oracle10g
Practicas oracle10g
 
35787646 system-software-lab-manual
35787646 system-software-lab-manual35787646 system-software-lab-manual
35787646 system-software-lab-manual
 
OLAP Reporting In CR v2
OLAP Reporting In CR v2OLAP Reporting In CR v2
OLAP Reporting In CR v2
 

More from Alan Manifold

Making materials findable at State Library Victoria, May 2015
Making materials findable at State Library Victoria, May 2015Making materials findable at State Library Victoria, May 2015
Making materials findable at State Library Victoria, May 2015Alan Manifold
 
Deep Links Into Primo
Deep Links Into PrimoDeep Links Into Primo
Deep Links Into PrimoAlan Manifold
 
Making Materials Findable at the State Library of Victoria
Making Materials Findable at the State Library of VictoriaMaking Materials Findable at the State Library of Victoria
Making Materials Findable at the State Library of VictoriaAlan Manifold
 
Some Meditations for Baha'i Elections
Some Meditations for Baha'i ElectionsSome Meditations for Baha'i Elections
Some Meditations for Baha'i ElectionsAlan Manifold
 
Photo retrospective of the life of Rosemary Manifold
Photo retrospective of the life of Rosemary ManifoldPhoto retrospective of the life of Rosemary Manifold
Photo retrospective of the life of Rosemary ManifoldAlan Manifold
 
What Were Once Habits Are Now Vices
What Were Once Habits Are Now VicesWhat Were Once Habits Are Now Vices
What Were Once Habits Are Now VicesAlan Manifold
 
Why I Hope ENCompass Continues to Fail
Why I Hope ENCompass Continues to FailWhy I Hope ENCompass Continues to Fail
Why I Hope ENCompass Continues to FailAlan Manifold
 
Queer Buy for the Straight Li-brary (Endeavor's ENCompass)
Queer Buy for the Straight Li-brary (Endeavor's ENCompass)Queer Buy for the Straight Li-brary (Endeavor's ENCompass)
Queer Buy for the Straight Li-brary (Endeavor's ENCompass)Alan Manifold
 
DigiTool API Project
DigiTool API ProjectDigiTool API Project
DigiTool API ProjectAlan Manifold
 
Evolution of Libraries and Metadata
Evolution of Libraries and MetadataEvolution of Libraries and Metadata
Evolution of Libraries and MetadataAlan Manifold
 
Using Access to Create Reports from Voyager (Microsoft Access with the Voyage...
Using Access to Create Reports from Voyager (Microsoft Access with the Voyage...Using Access to Create Reports from Voyager (Microsoft Access with the Voyage...
Using Access to Create Reports from Voyager (Microsoft Access with the Voyage...Alan Manifold
 
Reports and Forms: the finishing touches for Access Reporting (on the Voyager...
Reports and Forms: the finishing touches for Access Reporting (on the Voyager...Reports and Forms: the finishing touches for Access Reporting (on the Voyager...
Reports and Forms: the finishing touches for Access Reporting (on the Voyager...Alan Manifold
 
Buried Treasure: Finding Reporting Gold in the Voyager Tables (using Microsof...
Buried Treasure: Finding Reporting Gold in the Voyager Tables (using Microsof...Buried Treasure: Finding Reporting Gold in the Voyager Tables (using Microsof...
Buried Treasure: Finding Reporting Gold in the Voyager Tables (using Microsof...Alan Manifold
 
Art - advanced reporting techniques
Art - advanced reporting techniquesArt - advanced reporting techniques
Art - advanced reporting techniquesAlan Manifold
 
Access Reports for Tenderfeet (or is that tenderfoots?)
Access Reports for Tenderfeet (or is that tenderfoots?) Access Reports for Tenderfeet (or is that tenderfoots?)
Access Reports for Tenderfeet (or is that tenderfoots?) Alan Manifold
 
A Matter Of Form: Access Forms to make reporting a snap (or a click)
A Matter Of Form: Access Forms to make reporting a snap (or a click)A Matter Of Form: Access Forms to make reporting a snap (or a click)
A Matter Of Form: Access Forms to make reporting a snap (or a click)Alan Manifold
 
One More Thing: Tweaking and Embellishing Access Queries
One More Thing: Tweaking and Embellishing Access QueriesOne More Thing: Tweaking and Embellishing Access Queries
One More Thing: Tweaking and Embellishing Access QueriesAlan Manifold
 
Using Indexed field effectively in Access Queries with Voyager
Using Indexed field effectively in Access Queries with VoyagerUsing Indexed field effectively in Access Queries with Voyager
Using Indexed field effectively in Access Queries with VoyagerAlan Manifold
 
Breaking the Google Addiction
Breaking the Google AddictionBreaking the Google Addiction
Breaking the Google AddictionAlan Manifold
 

More from Alan Manifold (20)

Making materials findable at State Library Victoria, May 2015
Making materials findable at State Library Victoria, May 2015Making materials findable at State Library Victoria, May 2015
Making materials findable at State Library Victoria, May 2015
 
Deep Links Into Primo
Deep Links Into PrimoDeep Links Into Primo
Deep Links Into Primo
 
Making Materials Findable at the State Library of Victoria
Making Materials Findable at the State Library of VictoriaMaking Materials Findable at the State Library of Victoria
Making Materials Findable at the State Library of Victoria
 
Some Meditations for Baha'i Elections
Some Meditations for Baha'i ElectionsSome Meditations for Baha'i Elections
Some Meditations for Baha'i Elections
 
Photo retrospective of the life of Rosemary Manifold
Photo retrospective of the life of Rosemary ManifoldPhoto retrospective of the life of Rosemary Manifold
Photo retrospective of the life of Rosemary Manifold
 
What Were Once Habits Are Now Vices
What Were Once Habits Are Now VicesWhat Were Once Habits Are Now Vices
What Were Once Habits Are Now Vices
 
Why I Hope ENCompass Continues to Fail
Why I Hope ENCompass Continues to FailWhy I Hope ENCompass Continues to Fail
Why I Hope ENCompass Continues to Fail
 
Queer Buy for the Straight Li-brary (Endeavor's ENCompass)
Queer Buy for the Straight Li-brary (Endeavor's ENCompass)Queer Buy for the Straight Li-brary (Endeavor's ENCompass)
Queer Buy for the Straight Li-brary (Endeavor's ENCompass)
 
DigiTool API Project
DigiTool API ProjectDigiTool API Project
DigiTool API Project
 
Evolution of Libraries and Metadata
Evolution of Libraries and MetadataEvolution of Libraries and Metadata
Evolution of Libraries and Metadata
 
Using Access to Create Reports from Voyager (Microsoft Access with the Voyage...
Using Access to Create Reports from Voyager (Microsoft Access with the Voyage...Using Access to Create Reports from Voyager (Microsoft Access with the Voyage...
Using Access to Create Reports from Voyager (Microsoft Access with the Voyage...
 
Reports and Forms: the finishing touches for Access Reporting (on the Voyager...
Reports and Forms: the finishing touches for Access Reporting (on the Voyager...Reports and Forms: the finishing touches for Access Reporting (on the Voyager...
Reports and Forms: the finishing touches for Access Reporting (on the Voyager...
 
Buried Treasure: Finding Reporting Gold in the Voyager Tables (using Microsof...
Buried Treasure: Finding Reporting Gold in the Voyager Tables (using Microsof...Buried Treasure: Finding Reporting Gold in the Voyager Tables (using Microsof...
Buried Treasure: Finding Reporting Gold in the Voyager Tables (using Microsof...
 
Art - advanced reporting techniques
Art - advanced reporting techniquesArt - advanced reporting techniques
Art - advanced reporting techniques
 
Alan vs the BLOB
Alan vs the BLOBAlan vs the BLOB
Alan vs the BLOB
 
Access Reports for Tenderfeet (or is that tenderfoots?)
Access Reports for Tenderfeet (or is that tenderfoots?) Access Reports for Tenderfeet (or is that tenderfoots?)
Access Reports for Tenderfeet (or is that tenderfoots?)
 
A Matter Of Form: Access Forms to make reporting a snap (or a click)
A Matter Of Form: Access Forms to make reporting a snap (or a click)A Matter Of Form: Access Forms to make reporting a snap (or a click)
A Matter Of Form: Access Forms to make reporting a snap (or a click)
 
One More Thing: Tweaking and Embellishing Access Queries
One More Thing: Tweaking and Embellishing Access QueriesOne More Thing: Tweaking and Embellishing Access Queries
One More Thing: Tweaking and Embellishing Access Queries
 
Using Indexed field effectively in Access Queries with Voyager
Using Indexed field effectively in Access Queries with VoyagerUsing Indexed field effectively in Access Queries with Voyager
Using Indexed field effectively in Access Queries with Voyager
 
Breaking the Google Addiction
Breaking the Google AddictionBreaking the Google Addiction
Breaking the Google Addiction
 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

An Abecedary of Access Tips with the Voyager Integrated Library System

  • 1. An ABeCedary of Access Tips EndeavorUsersGroupMeeting2006 Alan Manifold Senior Administrator, Library Enterprise Applications Purdue University Libraries manifold@purdue.edu
  • 2. AGGREGATEFUNCTIONS Aisfor Click the sigma (Σ) to get the “Total:” line. For each unique combo of “Group By” lines, you’ll get one record in your results. Agriculture Lib 35543 Chemistry Lib 8664 Engineering Lib 193455 Geology Lib 3643 Humanities Lib 242576 Life Sci Lib 57344 Mathematics Lib 16634 …
  • 3. BETWEENOPERATOR Bisfor Between is inclusive at both ends: Between 5 and 9 matches 5 6 7 8 9 10 5.5 6.5 7.5 8.5 9.5 Between #4/21/2006# And #4/22/2006# 21 April 2006 22 April 2006 16 816 16 16 16 16 16 0/24 0/24 0/24 0/24 0/24 0/24 0/24 But a date range runs from midnight at the start of the first day to midnight of the last:
  • 4. CRITERIA Cisfor In your criteria, the In operator executes much faster than the Or operator Instead of: Use: Better yet, make your query self- documenting by using text fields, not idiot numbers:
  • 5. DIAGRAMS,CLASS(formerlyE-R) Disfor For each CAT_PROFILE record, there are 0, 1 or more CAT_OPERATOR records. There’s 1 C_P record for each C_O rec. For each C_O rec, there is 1 OP rec. An OP rec can have 0 or 1 C_O recs.
  • 6. EXPRESSIONS Eisfor You can use expressions to get the exact results you want: Instead of: AMT DEWEYNUM CITY CDATE LNAME #04/22/2005# ALLOC1 CHGS GetFieldRaw(***) Perhaps you could use: CCur(AMT/100) Left(DEWEYNUM, 3) UCase(CITY) Month(CDATE) LNAME & “, ” & FNAME DateAdd(“yyyy”, -1, Date()) ALLOC1 – ALLOCDEC Val(CHGS) + Val(BRWS) Mid(GetFieldRaw(***), 4, 1)
  • 7. Format()(andotherdate/timefunctions) Fisfor Format(Date(), “mm/dd/yyyy”) --04/22/2006 Format(Date(), “dddd”) --Saturday Format(Date(), “hh:mm:ss”) --14:18:54 Format(Date(), “hh:mm:ss ampm”) --02:18:54 pm DateAdd(“m”, 3, CHARGE_DATE) --adds 3 months to the charge date Date fields are always Date/Time fields, so you have to take that into account when you specify criteria or do comparisons.
  • 8. GenericCriteriaInGetField*() Gisfor The three GetField* functions and GetSubField are used to get data out of the “BLOBs”. All three can handle “generic” GetField(GetMFHDBLOB(MFHD_ID), “866”, 1) --gets the first 866 field GetFieldAll(GetBibBLOB(BIB_ID), “6”) --gets all 6XX fields GetFieldRaw(GetAuthBLOB(AUTH_ID), “1”, 1) --gets the first (only) 1XX field GetSubField(***stuff***, “”, 1) --gets the first subfield (whatever it is) criteria, by shortening the “Tag” parameter.
  • 9. HIDDENOBJECTS Hisfor Changing the ViewHidden Objects option to “On” allows you to see and change hidden modules
  • 10. IIf()FUNCTION Iisfor In programming languages, you may use code like this for a “conditional”: if (sun = up) then “day”; else “night”; In Access, the IIf() (Immediate If) function does the same thing: IIf(sun = up, “day”, “night”) PH: IIf([PHONE_NUMBER] Is Null, “NO PHONE”, [PHONE_NUMBER]) You can find lots of uses for it in queries:
  • 11. ITEM INNER JOIN ITEM_BARCODE ITEM LEFT JOIN ITEM_BARCODE ITEM RIGHT JOIN ITEM_BARCODE ITEM ITEM_BARCODE INNER JOIN LEFT JOIN RIGHT JOIN JOINS:INNER,LEFT&RIGHT Jisfor SAMPLE TABLES
  • 12. KEYFIELDS Kisfor Key fields are the ones that uniquely identify specific records in a table. Sometimes they are simple, sometimes they are composite. Some examples: Table Key field(s) BIB_TEXT BIB_ID LEDGER LEDGER_ID BIB_MFHD BIB_ID & MFHD_ID FUND LEDGER_ID & FUND_ID SERIAL_ISSUES COMPONENT_ID & ISSUE_ID FINE_FEE FINE_FEE_ID FREQUENCY FREQUENCY_CODE
  • 13. LikeOPERATOR Lisfor Use the Like operator in your criteria to match patterns for text fields. A star will match any sequence of 0 or more chars. “main”, “maintain”, “main street”… “refe”, “ugrl,refe”, “phys,refe”… “her”, “helecopter”, “his mother”… “ser”, “serial”, “loser”, “reserves”… Like “main*” Like “*refe” Like “h*er” Like “*ser*” Criterion Matches You can even use this when you prompt for criteria by concatenating an asterisk: Like [Fund name prefix:] & “*” Like [First initial of patron surname?] & “*”
  • 14. MAKETABLEQUERIES Misfor If a query (such as a BLOB query) is going to run a long time, you can use a “Make Table” query to keep the results so you don’t have to run it twice.
  • 15. NOTRESPONDING Nisfor Normally when a Windows task status is “Not Responding”, the task is frozen and can be ended. But Voyager/Access queries will often be in this status as they run, and will eventually wake up.
  • 16. Or(ANDOTHERBOOLEANOPERATORS) Oisfor OR AND NOT For criteria on a single field, type the Boolean operators into the Criteria line. For “OR’ed” criteria on multiple fields, also use the “or:” line and lines below it.
  • 17. PROMPTINGFORCRITERIA Pisfor The easiest way to make your queries more flexible is to substitute prompts for “hard-code” criteria beneath fields. Instead of: >= #4/1# And < #5/1# “stacks” > 500 Like “*refe” In(“abm”, “Abm”, “ABM”) Try using: >= [Starting date:] And < [Ending date:] [Location code:] < [Minimum Amount?] Like “*” & [Subloc:] UCase([Initials?]) and UCase(field), too
  • 18. QUERIESWITHSUBQUERIES Qisfor The results of a query looks just like a table, so you can use a query in a query
  • 19. REPORTSANDFORMS Risfor Reports can finish off a project nicely. With a bit of Visual Basic, a form can add a lot.
  • 20. SQL-SPECIFICQUERIES Sisfor Some queries are “SQL Specific”, which means they must be created in SQL View, not in Design View. Of these, UNION queries are the most useful for Voyager. SELECT * FROM [<query 1>] UNION ALL SELECT * FROM [<query 2>] UNION ALL SELECT * FROM [<query 3>]; Do queries in Design View, then UNION them with this syntax.
  • 21. TEXTFIELDFUNCTIONS Tisfor Use text functions with IIf() to do fancy text processing: Sample call Returns InStr(MNOTE, “//”) 13 Mid(MNOTE, 7, 4) “call” Mid(MNOTE, 15) “abm” IIf(MNOTE, “//”) <> 0, Mid(MNOTE, InStr(MNOTE, “//”) + 2), “Not revised”) Our sample field: MNOTE = “Fixed call #//abm”
  • 22. utf8to16()FUNCTION Uisfor Since Oracle encodes UNICODE fields in utf8 and Access uses utf16, we have to convert them. UTF8 J a ̈ a ̈ s k e l a ̈ i 4A61CC8861CC88736B656C61CC8869 n e n , M a u n o 6E656E2C204D61756E6F UTF16 J a ̈ a ̈ s k 004A00610308006103080073006B e l a ̈ i n e n 0065006C006103080069006E0065006E , M a u n o 002C0020004D00610075006E006F Converted Jääskeläinen, Mauno
  • 23. VIEWS Visfor SQL> set long 4000 SQL> select text from user_views 2 where view_name = 'DEWEYCLASS_VW'; TEXT ------------------------------------------- select mfhd_id, substr(normalized_call_no,0,3) as class, substr(normalized_call_no,0, instr(normalized_call_no,' ')-1) as longclass from mfhd_master where call_no_type = '1' Use a variant of this SQL*Plus query to see the query behind any given view:
  • 25. X,Active(ActiveX) Xisfor [Abecedary creators often cheat for X.] Here, ActiveX stands for any Visual Basic. oNewTable.Connect = sConnect oNewTable.Attributes = dbAttachSavePWD oDB.TableDefs.Append oNewTable In the (hidden) module, “Connection Code”, change this: oNewTable.Connect = sConnect oDB.TableDefs.Append oNewTable To this: You won’t have to type the userid and password when you open your first table.
  • 26. Year()(andotherDate/Timefunctions) Yisfor MyDate = #4/12/2006 11:45:57 PM# Year(MyDate) = 2006 Month(MyDate) = 4 Day(MyDate) = 12 Weekday(MyDate) = 4 (Wednesday) Hour(MyDate) = 23 Minute(MyDate) = 45 Second(MyDate) = 57 You can use date/time functions like Year, Month, Day, etc., to get specific parts of a date/time field:
  • 27. ZOOMWINDOW Zisfor Work on complex expressions is easier with Zoom. Put your cursor in a field, then type Shift-F2 or right click and select Zoom.