INDEX [] · Concat() function, 129, 136, 191, 197–198 concatenation, 190, 197–200 concatenation...
Transcript of INDEX [] · Concat() function, 129, 136, 191, 197–198 concatenation, 190, 197–200 concatenation...
INDEX
bindex.indd 821bindex.indd 821 7/18/2013 4:55:03 PM7/18/2013 4:55:03 PM
COPYRIG
HTED M
ATERIAL
bindex.indd 822bindex.indd 822 7/18/2013 4:55:04 PM7/18/2013 4:55:04 PM
823
INDEX
Symbols & Numbers
& (concatenation) operator, 129/ (integer division) operator, 129 ^ (power) operator, 1301NF (fi rst normal form), 566–567, 5682NF (second normal form), 567, 5692013Team.accdb fi le, 6983NF (third normal form), 567, 569–57032-bit Offi ce versions, 611–6134NF (fourth normal form), 5685NF (fi fth normal form), 56864-bit Offi ce versions, 611–613
A
Abs() function, 141.accdb fi les, 5, 6
converting .mdb fi les to, 768–769linking fi les to, 572–576
Access 2013vs. Access 2010, 11deprecated components, 4–11new components, 12–13
Access apps. See also web appsdeploying, 772–777maintaining, 786–791user-level security, 764–772
Access clientconnecting to web apps, 401–412controls without web app counterparts, 109security, 482, 509–513templates
linking to, 467
storing in document libraries, 450–462Access Data Projects, 5Access SQL, 581–582Access Template Library, 449Account page, backstage, 58–59ACE database engine, 566, 572, 578ACM Server, 13Action Bar, 93–96
custom action button properties, 93–94default action buttons, 94–95
action buttonscustom, 95–96default, 94–95
Action Catalog, Macro Designer, 150, 151, 153, 162
action queries, 125Active Directory (AD), 766Adhoc environment, 779–780.adp fi les, 5After Delete table event, 158After Insert table event, 158After Update table event, 158, 169, 283agent-based security, 482–483aggregate queries, 126AJAX (Asynchronous JavaScript And XML),
309, 311, 348Allow Zero Length property, 10anonymous access, 492–494ANSI specifi cations, 130Any type, 624API.txt Create and Manage an Explorer
Window fi le, 613–617API.txt Tip_Nulls fi le, 622API.txt Tip_SustainablePointer fi le, 624
bindex.indd 823bindex.indd 823 7/18/2013 4:55:04 PM7/18/2013 4:55:04 PM
824
API32-64.txt Private Sub VBA7 fi le – Boyce Codd Normal Form (BCNF)
API32-64.txt Private Sub VBA7 fi le, 612–613
APIs (Application Programming Interfaces), 608–609
declaring functions, 617–619documentation, 609Explorer window example, 613–617handers, 611mapping data types, 609–610pointers, 611
App Catalogs, 16–18, 450–451app packages
customizing, 463–467inter-site portability, 551linking to Access template fi les, 467
app stores, 14app web, 15app web sandbox, 15appdb.xml fi le, 545–547, 551Append query, 576, 580appendTo() function, 356application layer security, 484–485Application Programming Interfaces. See APIsappmanifest.xml fi le, 545–547, 551apps
Access apps. See Access appsApps for Offi ce, 14–15Apps for SharePoint, 14, 15–16web apps, See web apps
Apps for Offi ce, 14–15Apps for SharePoint, 14, 15–16Asynchronous JavaScript And XML (AJAX), 309,
311, 348Attachment control, 109, 656AU (auto-updater) tool, 775–776Audit and Control Management Server. See ACM
Serveraudit tables, 301–303audit trails, 769–772
data macros and, 627–628vs. differential backups, 478–479
authentication, 18–19auto-updater (AU) tool, 775–776AutoComplete control, 104–105automation, 719–720
declaring/instantiating variables, 721–722early vs. late binding, 722–724Offi ce applications
Excel, 725–737Outlook, 749–759PowerPoint, 744–749Word, 737–744
PKZip, 759–762AutoNumber data type, 33–36, 38availability, 798–799
B
back enddata refresh cycles, 780–781deploying fi le changes, 776–777environments, switching between, 781–784SQL Server as, 807–820
Catalog Views, 817SSMS, 807–814stored procedures, 815–816triggers, 817troubleshooting, 817–820user-defi ned functions, 816–817views, 814–815
backstage, 55–59backups
database solutions, 786–789differential (See differential backups)managing, 560–561SQL Server databases, 810–811
batch fi les, auto-updating front-end fi les, 776BCNF (Boyce Codd Normal Form), 568BE. See back end BeforeUpdate event, 193binding reports to passthrough queries, 409bit data type, 38, 188Blank view, 54
default buttons, 94–95resizing, 91
blank web apps, creating, 26–27block macro actions, 160bootstrapper, 10Bound Object Frame control, 655Boyce Codd Normal Form (BCNF), 568
bindex.indd 824bindex.indd 824 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
825
breadcrumb navigation – controls
breadcrumb navigation, 50breakpoints, 596–597buffered strings, 623bulk operations, 125Button control, 99ByRef, 623Byte data type, 182ByVal, 623
C
Cmapping data types, 609–610passing nulls, 622structs, 610–611
C++handlers, 611mapping data types, 609–610passing nulls, 622pointers, 611structs, 610–611
Calculated data type, 38, 190–191, 197–200calculated fi elds
functions/expresssions, 146–147to support indexing, 628–631
Call Level Interface (CLI), 573callback function, 619camelCase, 353CancelRecordChange macro action, 161carriage returns, 39Cartesian product joins, 602–603cascade deletes, 296CAST() data types, 582Cast() function, 132–133Catalog Views, 817cboAddress object, GeoName class, 391CDate() function, 578Ceiling() function, 129, 142certencoded() function, 535certprivatekey() function, 535ChangeView macro action, 167, 169–170, 171CharIndex() function, 136Chart API, 363–371Chart control, 109check-constraint violations, 625Checkbox control, 99–100
checksum, 777CLI (Call Level Interface), 573click event handlers, creating for query by views,
261–263client database connections, 401–412
best practices, 409–412VBA code to relink, 406–409security, 509–513
cloning records, 270–278Close page, backstage, 58ClosePopup macro action, 167closing databases, 58Cloud App Model, 3. See also appsCoalesce() function, 134Code Playground, 366–367Collect Data via Email feature, 8combined navigation, 51combo boxes
Combobox control, 98–99in forms, 656–657
command buttons, 649Comment macro action, 161, 162, 164, 167comments, adding to macros, 162complex queries, 600–601Concat() function, 129, 136, 191, 197–198concatenation, 190, 197–200concatenation (&) operator, 129confi dentiality statements, 711confi guration tables, 199–200connecting to web apps
using Excel, 412–430using SSMS, 430–446
adding linked servers, 433–437getting connection details, 401managing, 399–400, 430–433querying data in linked servers,
437–442using linked server objects, 442–446
using the Access client, 401–412constants, 131–132consuming web services
using web browser control, 362–371ZIP code lookups, 371–394
controls, 96AutoComplete, 104–105Button, 99
bindex.indd 825bindex.indd 825 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
826
copying and pasting macro actions – database solutions
client controls not available in Access web apps, 109
Combobox, 98–99common properties, 108–109Image, 101Label, 96–97placement, manipulating, 88–92Related Items, 105–107Subview, 102Textbox, 97–98, 647–648Web Browser, 102–103, 110–114
copying and pasting macro actions, 155–156correlated queries, 602crashes, 622Create, Read, Update, Delete (CRUD) view, 205CreateRecord macro action, 161, 166, 275–277,
288–289, 292–293, 637–638CRUD (create, read, update and delete)
operations, 266CRUD (Create, Read, Update, Delete) view, 205Currency constant, 131Currency data type, 38, 187–188custom action buttons
adding, 94customizing, 96properties, 93–94
Customize Quick Access Toolbar pane, 6Customize the Ribbon pane, 6–7
D
Data Connection Wizard, 412–415data macros, 157, 624–625. See also freestanding
macros; UI macrosAction Catalog, 162adding actions, 162architecture, 158–159block macro actions, 160changes since Access 2010, 159client vs. web macros, 625–626context, 158–159creating, 628–640DeleteRecord, 161, 166, 167, 626EditRecord, 161, 166, 167, 626, 637, 641
fi lter tables, clearing selections, 249ForEachRecord, 161, 165–166, 267, 626,
629, 633, 636–639LookupRecord161, 165parameters, 172–173passing parameters, 155standalone, 157, 158–159, 162, 172tracing, 154–155use cases, 626–628using with UI macros, 172–175VBA, accessing, 640–641when to use, 266–267
data sourcesACE database engine, 566, 572, 578creating tables from, 31–36DSN-less linking, 514–515normalization, 566–570ODBC linking, 573–576primary key fi elds, 570–571SharePoint lists as, 41–42
data types. See also specifi c typesAutoNumber, 33–36, 38Calculated, 38, 190–191, 197–200changes from previous versions, 38–40constants, 131–132Currency, 38, 187–188Date/Time, 38, 40, 183–187Hyperlink, 38, 39, 188–189Image, 38, 40, 189–190Long Text, 38–39, 178–182Lookup, 40, 191–193mapping, 609–610Short Text, 38–39, 178–182SQL Server types, 812–814Yes/No, 38, 188
Database Compare, 12–13database diagrams, 811database solutions
debugging, 596–597deploying, 772–777intellectual property rights, 791–792maintaining, 786
automating maintenance, 789–791backups, 786–789
bindex.indd 826bindex.indd 826 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
827
databases – design patterns, navigation
different environments, 778–786shutting down solutions, 791
trial solutions, 792–794user-level security, 764–772
databasesclosing, 58deploying solutions, 772–777Maid To Order. See Maid To Order appopening, 57–58saving, 58
Datasheet view, 37, 54, 230–236controls supported, 76default buttons, 94–95fi lter limitations, 232–236fi ltered lists in drop-downs, 231–232search forms, creating, 657–660
DataSources.txt Access SQL fi le, 581DataSources.txt Append Query fi le, 580DataSources.txt Convert T-SQL data to
Access date fi le, 578DataSources.txt Convert T-SQL date to
Access date II fi le, 579DataSources.txt Convert T-SQL to Access
date in T-SQL fi le, 579DataSources.txt Delete Object fi le, 580DataSources.txt Delete query fi le, 580DataSources.txt Import spec in VBA fi le,
577DataSources.txt Make Table Query fi le, 579DataSources.txt Saved Import Export in
VBA fi le, 577DataTable() function, 366date and time functions, 139–141Date constant, 131date data type, 38date limits, 805–806Date/Time data type, 38, 40, 183–187DateAdd() function, 139–140, 284–285DateDiff() function, 140, 285DateFromParts() function, 135DatePart() function, 140, 261–262datetime2 data type, 38DateWithTime constant, 131DateWithTimeFromParts() function, 135
Day constant, 132, 139Day() function, 139, 140–141DayOfYear constant, 132dBASE fi les, deprecation of, 7debugging database solutions, 596–597Decimal data type, 182, 187–188decimal data type, 38default action buttons, 94–95Delete table event, 296DeleteRecord action, 161, 166, 167, 626delimiters, 129Deploy_Maintain.txt Batch file to
Copy FE fi le, 776Deploy_Maintain.txt Call Audit
Trail fi le, 771Deploy_Maintain.txt Call MDA fi le, 790Deploy_Maintain.txt CaptureAuditTrail
fi le, 770–771Deploy_Maintain.txt Change Textbox
BackColor based on Textbox value fi le, 782–783
Deploy_Maintain.txt Copy Compact Repair fi le, 787–788
Deploy_Maintain.txt pf_FindFolder fi le, 783–784
Deploy_Maintain.txt pf_FindName fi le, 784Deploy_Maintain.txt pf_FindPath fi le, 783Deploy_Maintain.txt Remote Query fi le, 772Deploy_Maintain.txt Trial - Number of
records fi le, 793Deploy_Maintain.txt Trial – Timed fi le,
793deploying database solutions, 772–773
auto-updating front-end fi les, 775–776deploying back-end changes, 776–777deploying front-end fi les, 773–775
deploying web apps, 540app catalogs, 540–541on-premises SharePoint server, 541–551upgrading and maintaining apps, 559–561versioning apps, 551–561
design patterns, navigationbreadcrumb, 50combined, 51
bindex.indd 827bindex.indd 827 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
828
DEV (Development) environment – ETL (extract, transform, load)
drop-down menus, 51faceted searches, 51fl y-out menus, 51footer, 51navigation bars, 47–48search, 48–50tabbed, 50tag clouds, 50
DEV (Development) environment, 778Dev Ashish, 782Developer Subscription, 558Development (DEV) environment, 778dialog forms, 652differential backups, 468–471
vs. audit trails, 478–479insert and update queries, 471–477using transactions, 478VBA module for running, 477–478
distributed query transactions, 445–446distributing web apps, 16–18document libraries
confi guring version control, 460–462creating custom content types, 452–455creating libraries, 450–452customizing libraries, 456–457customizing ribbon, 458–460importing image fi les, 455–456
Double data type, 182, 183dragging and dropping macro actions, 155–156drawChart() function, 365–366drilling down reports, 698–699drop-down lists, 231–232drop-down menus, 51DSN-less connections, 406–407, 514–515Duplicate View, 92–93duplicating views, 92–93
E
e-commerce, PayPal buttons, adding, 333adding the HTML, 339–340allowing framing of custom page, 338–339authoring custom pages, 336–338getting the HTML, 333–336showing buttons on web apps, 340–341
e-mail, collecting data via, 8early binding, 722–724EditRecord macro block, 161, 166, 167,
626, 637, 641Else If macro block, 164embedded
data macros, 157, 159queries, 119–120UI macros, 157, 159
encryption, 515–516administrator tasks, 531–532creating SharePoint lists, 516–524storing passwords in SharePoint lists,
524–531enterprise environments
app packages, customizing, 463–467document libraries
confi guring version control, 460–462
creating, 450–452creating custom content types,
452–455customizing libraries, 456–457customizing library ribbon, 458–460importing image fi les, 455–456
synchronizing data between app databases, 468–479
template fi les, linking to, 467EnumChildWindows function, 617, 618, 619, 620,
620suenvironments, 778–786EOMonth() function, 141Eqv operator, 130Err object, 623error handling, 591–596
and data macros, 267ErrorHandling.txt Private Sub
cmdFoo_Click 2 fi le, 593ErrorHandling.txt Private Sub
cmdFoo_Click 3 fi le, 594ErrorHandling.txt Private Sub
cmdFoo_Click 4 fi le, 595ErrorHandling.txt Private Sub
cmFoo_Click 1 fi le, 592ETL (extract, transform, load), 576
bindex.indd 828bindex.indd 828 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
829
Excel – forms
Excelautomation, 725–737importing data from, 31–36object library, 728object model, 721–722, 728ODC connections
creating connections, 412–415creating PivotCharts, 416–420creating PivotTables, 420–421creating tables, 415–416managing, 421–424sharing workbooks, 425–430
Exists operator, 130Exists() function, 634Exists() subquery, 601–602ExitForEachRecord macro action, 161Exp() function, 142explicit trust, 19Explorer window, creating, 613–617Expression Builder, 153–154expressions
availability by context, 146–147constants, 131–132delimiters, 129Expression Builder, 153–154functions. See functionsoperators, 129–131sargability and, 226
external data sources. See data sourcesExternalReader users, 484, 509, 513, 533ExternalWriter users, 484, 509, 512–513,
524–525, 533extract, transform, load (ETL), 576
F
faceted seaches, 51False constant, 131FE. See front-end (FE) environmentsField List, 79–84fi eld-level validation rules, 193–195fi elds. See also data types
FK (foreign key), 566, 567, 569PK (primary key), 566, 567, 570–571properties, 40–41
fi fth normal form (5NF), 568fi le-based security, 482Filter by Form, 659fi ltering
Datasheet views, 230–236query by views, 237
building click event handlers, 261–263
cascading parameters, 242–243clearing selections, 249creating, 249–252creating fi lter tables, 244, 248–249creating fi ltering queries, 252–257design requirements, 246–248displaying fi lter results, 260–261enabling/disabling parameters,
241–242handling large numbers of parameters,
244–246making parameters optional, 241optional joins, 242populating fi lter tables, 257–260SQL construction, 237–241
fi rst normal form (1NF), 566–567, 568fi xed-point numbers, 38, 183FK (foreign key) fi elds, 566, 567, 569fl ags, 624Float constant, 131float data type, 38, 183fl oating-point numbers, 38, 183Floor() function, 129, 142fl y-out menus, 51footer navigation, 51ForEachRecord macro block, 161, 165–166, 267,
626, 629, 633, 636–639foreign key (FK) fi elds, 566, 567, 569Format() function, 134–135, 185–187forms
adding web browser controls, 410–412creating, 644–645
attachment fi elds, 656combo boxes, 656–657command buttons, 649datasheet search forms, 657–660dialog forms, 652
bindex.indd 829bindex.indd 829 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
830
fourth normal form (4NF) – Hyperlink data type
labels, 648–649layout considerations, 645lists, 656–657modal forms, 652pop-up forms, 652split forms, 650–651Tag property, 653–654textboxes, 647–648user considerations, 645–647
frmDemo forms, 653–656images, displaying, 654–656index forms, 208–209, 219
Datasheet view, 230–237List view, 219–223Summary view, 223–230
multiple instances, opening, 660–663MVFs (multi-value fi elds), 663–668PDF forms, fi lling out, 712–715query by forms, 209–210Report Runner, 668–685split forms, 650–651switchboards, 206–208
fourth normal form (4NF), 568freestanding macros, 270
cloning records, 270–278deleting records, 294–296generating a set of records with variable
parameters, 278–290generating records in different tables,
290–294updating records, 294–296
frmAutomation form, 724frmDemoComboBox form, 656frmDemoImage form, 655frmDemoTagReadOnly form, 653–654frmDemoTagRequiredData form,
653–654frmSource object, GeoName class, 391front-end (FE) environments
auto-updating fi les, 775–776deploying fi les, 773–775user access, 767
frustrated joins, 599–600functions. See also specifi c functions
availability by context, 146–147
constants, 131–132data type inspection/conversion functions,
132–135date and time, 139–141incompatible with T-SQL, 806-807math, 141–145optional arguments, 586program fl ow, 145SQL aggregate, 145string, 135–139table-valued, 117–118user-defi ned, 586–591, 816–817
G
GeoName class, 373–394GetClassName function, 619–620GetDesktopWindow function, 617–618GetLastError function, 623GetWindowPlacement function, 621Google
Chart API, 363–371Code Playground, 366–367Drive, 787
google.load() function, 365GoToControl macro action, 167GoToRecord macro action, 167Group macro action, 161, 164–165, 167grouping
report data, 700–701, 702tiles, 213
guided searches, 51
H
handers, 611hash sum, 777hiding tiles, 77history of change, 301–303horizontal navigation bars, 47–48hosting web apps, 15–16Hour constant, 132Hyperlink control, 100–101Hyperlink data type, 38, 39, 188–189
bindex.indd 830bindex.indd 830 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
831
If macro action – list pane
I
If macro action, 161, 162–164, 167If...Then macro block, 155, 160If...Then...Else macro block, 162–164If/Then macro action, 274, 276–278, 284–285iframes, web browser control security, 113–114IIf() function, 191, 197–198Image control, 101, 655–656Image data type, 38, 40, 189–190Immediate window, VBE, 596Imp operator, 130In operator, 130In() function, 130, 634index forms, 219
Datasheet view, 230–237List view, 219–223Summary view, 223–230
Info Backstage, 398–399enabling/disabling connections, 400getting connection details, 401managing connections, 399–400resetting passwords, 401
Info page, backstage, 56–57initializing local variables, 269–270inlining web apps, 322–333Inno Setup, 10InstallShield, 10instantiation, 721–722int data type, 38, 182Integer constant, 131Integer data type, 182integer division (/) operator, 129integrated solutions, 306–307
security considerations, 307–310web services, 310–311
Location Mapper app, 311–322using APIs with a web browser control,
362–371ZIP code lookup, 371–394
intellectual property rights (IPR), 791–792internal-facing apps, distributing, 16–18interoperability, 717–718IPR (intellectual property rights), 791–792ISO_Week constant, 132
J–K
J Street Technology, 782JavaScript
building pages to handle, 363–366vs. VBA, 350–352
Jet 3.x fi les, deprecation, 7Jet Replication, 6joins
Cartesian product, 602–603frustrated, 599optional, 242
jQueryadding image elements, 353-357installing to team site, 348-350
KPI (Key Performance Indicators)Google’s Chart API, 363–371
L
Label control, 96–97Label Text property, 41Label Wizard, 694–696Language page, backstage, 59late binding, 722–724layout. See also navigation; UI; views
mobile devices, 60–65new approach to, 51–54
Left() function, 136–137Len() function, 137licensing, 558–559Like operator, 130Line control, 109links
linked views, 213managing linked objects, 576–579mapping, 213–214ODBC, 573–576SharePoint lists, 41–42template fi les, 467
list paneList view, 53search navigation, 49Summary view, 54
bindex.indd 831bindex.indd 831 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
832
List view – macros
List view, 37, 53default buttons, 94–95Design tab, ribbon, 75–76search fi eld, designing, 222
Listbox control, 109lists, SharePoint
linking, 41–42setting up, 516–524storing passwords in, 524–531
lngOrdinalPositions() array, 376local differential backups. See differential backupslocal variables, initializing, 269–270Locals window, VBE, 597Location Mapper app, 311
adding to websites, 312–315confi guring, 315–322selecting, 311–312
Location Mapper Plus, 312, 322–326Log() function, 142–143Log10() function, 142–143LogEvent macro action, 638logins, Offi ce 365, 27–29Long Integer data type, 182Long Text data type, 38–39
in client forms, 178–179in client tables, 179Enter key behavior, 39, 178–179, 181lengths, 39, 179in web app tables, 179–181in web forms, 181–182
LongText constant, 131Lookup data type, 40, 191–193lookup data type, 40Lookup Wizard, 191–193LookupRecord data block, 161, 165LookupRecord macro action, 267, 274, 275,
299–301, 629–630, 639–640Lower() function, 137LTrim() function, 137
M
Macro Designer, 152–157Action Catalog, 150, 151, 153, 162
data macro tracing, 154–155expressions, 153–154interacting with, 155–157macro links, 155Parameters box, 155
macroscopying and pasting, 155–156data macros, 157. See also specifi c macros
Action Catalog, 162adding actions, 162architecture, 158–159block macro actions, 160changes since Access 2010, 159client vs. web macros, 625–626context, 158–159creating, 628–640fi lter tables, clearing selections, 249parameters, 172–173passing parameters, 155standalone, 157, 158–159, 162, 172tracing, 154–155use cases, 266–267, 626–628using with UI macros, 172–175VBA, accessing, 640–641
dragging and dropping, 155–156freestanding macros
cloning records, 270–278deleting records, 294–296generating records in different tables,
290–294generating records with variable
parameters, 278–290updating records, 294–296
need for web-compatible language, 150–151UI macros, 157, 166–168. See also specifi c
macrosand validating data, 197architecture, 159–160block macro actions, 160data entry operations, 172return values, 174–175standalone, 157, 159–160using with data macros, 172–175when to use, 268–269
bindex.indd 832bindex.indd 832 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
833
Maid To Order app – New page, backstage
Maid To Order app, 24Access template fi le, linking to, 467adding to app catalog, 543–545, 547–551app catalog, 450app package, customizing, 463–467charts, rendering, 363–371document library, creating, 450–462fi eld-level validation, 193–195inter-site portability, 551linking web apps, 311–322mobile devices support, 61–65PayPal button, adding, 333–341record-level validation, 195records
cloning, 270–278deleting, 294–296generating in different tables, 290–294generating with variable parameters,
278–290updating, 294–296
site mailbox, adding, 341–362synchronizing data between web app
databases, 468–479version control, 545–547versioning, 551–561ZIP code lookup web services, 371–394
Make Table query, 579–580Marketplace, 16math functions, 141–145.mdb fi les, 5, 6, 7
converting to .accdb fi les, 768–769Members SharePoint group, 484, 491, 501, 502menus
deprecation of, 6drop-down, 51fl y-out, 51
MessageBox macro action, 167, 174–175Microsoft SkyDrive, 787Microsoft Source Code Control
Interface (MSSCCI), 9–10Millisecond constant, 132Minute constant, 132mobile devices, layout, 60–65modal forms, 652
monetizing web apps, 557–559Month constant, 132, 140–141Month() function, 140–141MSSCCI (Microsoft Source Code
Control Interface), 9–10multi-value fi elds. See MVFsMVDemo.accdb fi le, 664MVFs (multi-value fi elds), 664–668
appending attachments, 665–668appending MVFs, 664–665
MZ-Tools, 596
N
namingfreestanding UI macros, 287tiles, 77–78, 212, 213web apps, 204
navigation bars, 47–48Navigation Control control, 109navigation list
creating from web app tiles, 212–213design logic, 213organizing, 211–212
navigation, web apps, 46, 206breadcrumb navigation, 50combined navigation, 51drop-down menus, 51faceted seaches, 51fl y-out menus, 51footer navigation, 51index forms, 208–209, 219
Datasheet view, 230–237List view, 219–223Summary view, 223–230
layout, new approach to, 51–54navigation bars, 47–48query by forms, 209–211search navigation, 48–50switchboards, 206–208tabbed navigation, 50tag clouds, 50
.NET Framework, 800New page, backstage, 57
bindex.indd 833bindex.indd 833 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
834
NewRecord macro action – Owners SharePoint group
NewRecord macro action, 167No constant, 131normalization, 566–570Northwind database reports
calling criteria form, 706for comparing values, 706–708with fl exible groupings, 702–706grouping data, 700–701with simple criteria, 701–702with simple groupings, 702
Nouns, 25attributes, 30–31creating tables using, 29–31
Now() function, 141Null constant, 131null-terminated strings, 623Number data type, 39–40, 182–183nvarchar data type, 38, 39, 179, 181
O
OAuth, 19Object Explorer, SSMS, 808, 812object libraries
Excel, 728Outlook, 751PowerPoint, 745Word, 737
Object Linking and Embedding (OLE) objects, displaying, 655
object models, 719–722Excel, 721–722, 728Outlook, 751PowerPoint, 745Word, 738
ODBC (Open Database Connectivity) connections, 573–576. See also connecting to web apps
enabling/disabling, 399–400getting connecting information, 398–399, 401importing data from, 31–36resetting passwords, 401
ODC (Offi ce Data Connection) connections, 412–430
creating connections, 412–415
creating Excel PivotCharts, 416–420creating Excel PivotTables, 420–421creating Excel tables, 415–416managing connections, 421–424sharing Excel workbooks, 425–430
Offi ce 365logins, 27–29managing accounts, 58–59publishing apps, 554–556setting up trial accounts, 21–23
Offi ce applications32-bit vs. 64-bit, 611–613automating, 724–725
Excel integration, 725–737Outlook integration, 749–759PowerPoint integration, 744–749Word integration, 737–744
Offi ce Data Connection. See ODCOffi ce Store, 16, 557–559OLE (Object Linking and Embedding) objects,
displaying, 655OLE/ActiveX Control control, 109On Start macro, 269–270on-premises SharePoint server deployments,
541–551app catalog, 542–545, 547–551inter-site portability, 551tenancy, 541–542version control, 545–547
Open Database Connectivity. See ODBCOpen page, backstage, 57–58OpenPopup macro action, 167, 169–171, 271,
280–218, 295operators, 129–131Option Group control, 109optional joins, 242Options dialog, backstage, 59Outlook
automation, 749–759integration, 749–759object library, 751object model, 751
Owners SharePoint group, 484, 501, 502
bindex.indd 834bindex.indd 834 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
835
Package Solution – queries
P
Package Solution, 775Packaging Wizard, 10parameterized queries, 117–118, 125–126parameters, data macros, 155, 172–173Parse() function, 133PascalCase, 353passthrough queries, 409passwords
resetting, 401storing in SharePoint lists, 524–531
PayPal button, adding to web apps, 333adding the HTML, 339–340allowing framing of custom pages, 338–339authoring custom pages, 336–338getting the HTML, 333–336showing the button, 340–341
PDF forms, fi lling out, 712–715PDFDemo.accdb fi le, 712PDFDemo.mdb fi le, 712performance
SQL Server, 819table events, 297
Pi() function, 143PivotCharts, 8, 416–420PivotTables, 8, 420–421PK (primary key) fi elds, 566–567, 570–571PKZip, automating, 759–762POC (Proof of Concept) environment, 780pointers, 611pop-up forms, 652popup button properties, 84–88popup views, 215–216
for Datasheet views, 233to display fi lter results, 260–261for Summary views, 228–230
power (^) operator, 130Power() function, 143PowerPoint
automation, 744–749integration, 744–749object library, 745object model, 745
primary key (PK) fi elds, 570–571Production (PROD) environment, 779program fl ow functions, 145Proof of Concept environment, 780properties
controlsAutoComplete, 104–105Button, 99Checkbox, 100Combobox, 98–99common properties, 108–109Hyperlink, 100–101Image, 101Label, 96–97Multiline Textbox, 103–104Related Items, 107Subview, 102Textbox, 97–98Web Browser, 102–103
custom action buttons, 93–94fi eld properties, 40–41popup button properties, 84–88query properties, 127–128report properties, 689–691
pseudo-random numbers, 143public web app distribution, 16
Q
QA (Quality Assurance) environment, 779QBF (Query by Form), 209–210, 604–606Quality Assurance (QA) environment, 779Quarter constant, 132queries
action, 125aggregate, 126architecture, 116–118complex, 600–601copying manually, 121–123correlated, 602creating, 119–120, 606–608distributed query transactions, 445–446effective, 579–582embedded, 119–120
bindex.indd 835bindex.indd 835 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
836
Queries.txt Cartesian fi le – Report Runner
Exists() subquery, 601–602joins
Cartesian product, 602–603frustrated, 599
parameterized, 117–118, 125–126passthrough, 580, 582
binding reports to, 409performance, and data macros, 627previewing results, 123–124properties, 127–128sargable, 597–598saving, 119–120sorting, 116–117standalone, 120
Queries.txt Cartesian fi le, 602–603Queries.txt CascadeBoxes 2 fi le, 606Queries.txt CascadeBoxes fi le, 605Queries.txt Complex1 fi le, 600Queries.txt Complex2 fi le, 600–601Queries.txt Complex3 fi le, 601Queries.txt Exists fi le, 599–600Queries.txt Exists1 fi le, 602Queries.txt ExistsNot fi le, 602Queries.txt FrustratedJoin fi le, 599Queries.txt OuterJoin fi le, 599Queries.txt QueriesOnTheFly fi le, 607Queries.txt Sargable fi le, 598Queries.txt Upsert 1 fi le, 603Queries.txt Upsert 2 fi le, 603–604Queries.txt Upsert3 fi le, 604Query by Form (QBF), 209–210, 604–606query by views, 237
click event handlers, 261–263creating, 249–252data macros
to clear selections, 249to populate fi lter tables, 257–260
design requirements, 246–248displaying fi lter results, 260–261fi lter tables, creating, 248–249fi ltering queries, creating, 252–257fi ltering techniques, 241–246SQL construction, 237–241
Query Designer, changes in, 119–128query string parameters, 112
R
Radio Button control, 109RaiseError macro action, 161, 289, 298, 639–640Rand() function, 143RDBMS (relational database management systems)
FK (foreign key) fi elds, 566, 567, 569normalization, 566–570PK (primary key) fi elds, 566–567, 570–571
read-only access, 484, 493–494. See also ExternalReader users
read-write access, 484. See also ExternalWriter users
record limited previews, 793record-level validation rules, 195records
cloning, 270–278deleting, 166, 294–296editing, 166generating
in different tables, 290–294with variable parameters, 278–290
lookups, 165looping through, 165–166preventing deletions, 298–300requerying, 171supplemental, 628, 631–640updating, 294–296
recordsourcesavailable for views, 77–78queries as, 629, 638–640
Rectangle control, 109Reddick VBA convention, 204referential integrity, 192–193refresh cycles, 780–781Related Items control, 105–107relational database management systems. See
RDBMSreliability, 798–799Replace() function, 138replace() function, 354–355Replicate() function, 138Replication ID data type, 182Report Runner, 668
creating foundation, 668–669
bindex.indd 836bindex.indd 836 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
837
Report Wizard – security
running reports, 673–684setting up criteria fi elds, 669–673
Report Wizard, 694ReportExamples.accdb fi le, 700,
706, 707ReportExamplesNW.accdb fi le, 700reports, 688–689
binding to passthrough queries, 409calling criteria forms from, 706confi dentiality statements, 711creating
calculated fi elds, 692–693drilling down, 698–700Label Wizard, 694–696layout view, 691–692properties, 689–691Report Wizard, 694subreports, 696–698
date, 711for comparing values, 706–708with fl exible groupings, 702–706for grouping data, 700–701headers and footers
properties, 691repeating criteria, 709–710showing group headers and footers,
702-703name, 711page numbers, 711PDF forms, fi lling out, 712with simple criteria, 701–702with simple groupings, 702temporary tables, 711work tables, 711
RequeryRecords macro action, 167, 171restoring SQL Server databases, 808–810reversion control, 785–786revoking permissions, 492ribbon, 55–59
backstage, 55–59view design surface, 75–76
Right() function, 136–137Round() function, 129, 143–144rowversion data type, 11RTrim() function, 137
RunDataMacro macro action, 161, 167, 173–174, 268, 278, 281, 626, 630
RunMacro macro action, 167, 175
S
Sagekey, 775sargability, and expressions, 226sargable queries, 597–598Save As page, backstage, 58Save page, backstage, 58SaveRecord macro action, 167saving
queries, 119–120records, 167web apps, 58
searchfaceted, 51guided, 51navigation, 48–50
Second constant, 132second normal form (2NF), 567, 569security, 18–19
agent-based, 482–483in the application layer, 484–485client databases, 509–513client solutions, 509–513fi le-based, 482front-end .accde fi le, 513–514
DSN-less connections, 514–515linked servers, 532–536password storage, 515–532
Offi ce 365 trial accounts, setting up, 21–23SharePoint security, 485–486
access types, 484adding users, 487–489anonymous access, 492–494deleting users, 490editing users, 490extending permissions, 490–491external connections, 484external user accounts, 491–492personal storage, 486securable objects, 485–486team sites, 486
bindex.indd 837bindex.indd 837 7/18/2013 4:55:05 PM7/18/2013 4:55:05 PM
838
SetField macro action – SQL Server
user groups, 483–484SharePoint sites, setting up, 20–21user-level, 764–772Web Browser control, 113–114
SetField macro action, 161, 166, 275–276, 288, 292–293, 641
SetLocalVar macro action, 161, 163–164, 173SetProperty macro action, 167, 168–169SetReturnVar macro action, 161, 174setup.exe fi le, 10SetVariable macro action, 167, 174, 269–270SetWindowPlacement function, 621SharePoint
App Catalogs, 16–18lists
importing data from, 31–36linking to, 41–42setting up, 516-524storing passwords in, 524–531
securityaccess types, 484adding users, 487–489anonymous access, 492–494deleting users, 490editing users, 490extending permissions, 490–491external connections, 484external user accounts, 491–492personal storage, 486securable objects, 485–486team sites, 486user groups, 483–484
workfl ows, deprecation of, 8–9SharePoint Designer
custom content types, creating, 452–455downloading, 326image fi les, importing, 455–456libraries, customizing, 456–458library ribbon, customizing, 458–460
sharing web apps, 69–70Shell function, 613Short Text data type, 38–39
in client forms, 178–179in client tables, 179Enter key behavior, 39, 178–179, 181
lengths, 39, 179in web app tables, 179–181in web forms, 181–182
ShortText constant, 131Sign() function, 145Single data type, 182, 183site mailbox, adding to web apps, 341–342
requirements, 342setting up, 343–347as a shared tool, 347–362
SkyDrive, 787Solutions Mapper
adding, 311–315confi guring, 315–322
sorting queries, 116–117source code control, 9–10splash screens, creating, 216–219split forms, 650–651splitter bar, split forms, 651SQL aggregate functions, 145SQL injection, 237–238SQL Native Client 11.0 driver, 401–402, 407,
413–414SQL Server
as back end, 807–820Catalog Views, 817SSMS, 807–814stored procedures, 815–816triggers, 817troubleshooting, 817–820user-defi ned functions, 816–817views, 814–815
backing up databases, 810–811data types, 38, 812–814database diagrams, 811importing data from, 31–36restoring databases, 808–810tables, 811–812troubleshooting, 817–820upsizing to, 795–807
process, 802–805things to watch for, 805–807when to upsize, 796–802
versions, 799–800views, 116–117, 814–815
bindex.indd 838bindex.indd 838 7/18/2013 4:55:06 PM7/18/2013 4:55:06 PM
839
SQL Server Azure – tables
SQL Server Azure, 800SQL Server Enterprise, 800SQL Server Express (SSE), 799–800SQL Server Management Studio. See SSMSSQL Server Migration Assistant for Access
(SSMA), 10–11Sqrt() function, 145SSE (SQL Server Express), 799–800SSMA (SQL Server Migration Assistant for
Access), 10–11SSMS (SQL Server Management Studio), 807–814
connections to web app databases, 430–433adding linked servers, 433–437getting connection details, 401managing, 399–400querying data in linked servers, 437–442using linked server objects, 442–446
Object Explorer, 808, 812standalone
data macros, 157, 158–159, 162, 172, 266queries, 120UI macros, 157, 159–160
static URLs, confi guring Web Browser control using, 110
StopMacro macro action, 161, 167stored procedures, 815–816StrConv() function, 528string buffers, 623strings
CharIndex() function, 136Concat() function, 129, 136concatenation operator, 129delimiters, 129Left() function, 136–137Len() function, 137Lower() function, 137LTrim() function, 137–138null-terminated, 623Replace() function, 138Right() function, 136–137RTrim() function, 137–138Stuff() function, 138–139Substring() function, 139Upper() function, 137
structs, 610–611
Stuff() function, 138–139subreports, 696–698
Report Wizard, 694SubString() function, 139Subview control, 102Summary view, 54, 223–230
properties, 88supplemental records, 628, 631–640Support environment, 780surveymonkey.com, 8sustainable pointers, 623–624switchboards, 206–208synchronizing data between web apps, 468–479
T
T-SQLvs. Access SQL, 581–582incompatible functions, 806–807
Tab Control control, 109tabbed navigation, 50table events, 296–303
acquiring default values from other tables, 300–301
BeforeUpdate, 193maintaining a history of change, 301–303performance considerations, 297preventing deletions of completed records,
298–300using with default values, 266–267
table-valued functions, 117–118tables
audit tables, 301–303confi guration tables, 199–200creating, 29
Excel tables, 415–416from imported data sources, 31–36using Nouns, 29–31using the traditional method, 36–37
design requirements, 33–36exporting to Excel, 725–727SQL Server tables, 811–812tally tables, 279–280temporary tables, 577–578, 711validation rules, 193–197
bindex.indd 839bindex.indd 839 7/18/2013 4:55:06 PM7/18/2013 4:55:06 PM
840
tag clouds – UI (user interface)
design considerations, 196editing with existing data, 195–196fi eld-level, 193–195record-level, 195
views. See viewstag clouds, 50tally tables, 199–200
creating, 279–280tblCars table, 605–606tblColors table, 605tblCrews table, 165tblCustomers table, 165–166tblJobs table, 173tblNewTable table, 665–667tblOldTable table, 665–667tblOrderDetails table, 630, 639–640tblOrders table, 629–630tblReportCriteria table, 668–672tblReportCriteriaDetail table, 668–669team site, 65–66, 486
creating web apps via, 67–69jQuery, installing, 348–350
templates, Access clientbackstage and, 55–56storing in document libraries, 450–462
temporary tables, 577–578and reports, 711
tenancy, 541–542Test environment, 779
promoting fi les to production, 784–785Text constant, 131text data types, 38–39, 178–182Textbox control, 97–98
in forms, 647–648third normal form (3NF), 567, 569–570third-party apps, integrating, 311
Solutions Mapperadding, 311–315confi guring, 315–322
third-party database fi le maintenance solutions, 791
third-party error-handling tools, 596three-click rule, 211Tile Pane, 50tile-bound views, 78, 215–216
tilescreating navigations lists from, 212–213grouping, 213hiding, 77, 211naming, 76–77, 212, 213selecting views for, 77–78showing, 77
Time constant, 132time limited previews, 793TimeFromParts() function, 135, 259, 261–262timestamp data type, 11Today() function, 141Toggle Bottom control, 109toolbars, deprecation, 6Total Access CodeTools, 596touch screen devices, 60–65tracing data macros, 154–155trial database solutions, 792–794triggers, 817True constant, 131Trust Center page, backstage, 59trusting Web apps, 18–19Try_Cast() function, 133Try_Parse() function, 134TST (Test) environment, 779txtZIP object, GeoName class, 391–394type library, 719
U
UAT (User Acceptance Testing) environment, 779UDF.txt Public Function
ImportInvoice(strRec, strChr) fi le, 589UDF.txt Public Function pfGroup fi le, 588UDFs. See user-defi ned functionsUDTs (user-defi ned types), 610–611UI (user interface)
designCRUD views, 205index forms, 219–237planning, 205popup views, 215–216query by views, 237–263splash screens, 216–219tile-bound views, 215–216
bindex.indd 840bindex.indd 840 7/18/2013 4:55:06 PM7/18/2013 4:55:06 PM
841
UI macros – VBA
web app naming conventions, 204web design principles, 211–215
mobile devices support, 60–65web navigation, 46–47
breadcrumb navigation, 50drop-down menus, 51faceted searches, 51fl y-out menus, 51layout, new approach to, 51–54navigation bars, 47–48ribbon, 55–59search navigation, 48–50tabbed navigation, 50tag clouds, 50
UI macros, 157, 166–168. See also data macros; freestanding macros
architecture, 159–160block macro actions, 160ChangeView, 169–171data entry operations, 171–172OpenPopup, 169–171RequeryRecords, 171return values, 174–175SetProperty, 168–169standalone, 157, 159–160using with data macros, 172–175and validating data, 197when to use, 268–269
ULS (User Level Security), 768–769Unbound Object Frame control, 655UndoRecord macro action, 167upgrading web apps, 559–561Upper() function, 137Upsert operation, 603–604upsizing to SQL Server, 795–807
process, 802–805things to watch for, 805–807when to upsize, 796–802
Upsizing Wizard, 10–11URLEncode() function, 382URLs
binding to table fi elds, 111building dynamically with macro actions,
111–112query string parameters, 112
static, confi guring Web Browser control, 110User Acceptance Testing (UAT) environment, 779user accounts
external, 491–492managing, 486–490
user groups, SharePoint, 483–484user interface. See UIuser interface macros. See UI macrosUser Level Security (ULS), 768–769user-defi ned functions, 586–591. See also specifi c
functionscreating, 587–591SQL Server, 816–817
user-defi ned types (UDTs), 610–611UserDisplayName() function, 244, 268, 494UserEmailAddress() function, 244, 249, 250,
252, 257, 259, 268, 494–496users
SharePoint users, 486adding, 487–489anonymous, 492–494deleting, 490editing, 490extending permissions, 490–491external, 491–492
user-level security, 764–772usys prefi x, 200utility tables, 200Utter Angel, 782UtterAccess Code archive, 782
V
validation rules, 193–197data macros and, 625design considerations, 196editing with existing data, 195–196fi eld-level, 193–195record-level, 195
varbinary data type, 38, 40, 189, 200variables
instantiating, 721–722in UI macros, 159
VBAaccessing from data macros, 640–641
bindex.indd 841bindex.indd 841 7/18/2013 4:55:06 PM7/18/2013 4:55:06 PM
842
VBScript – web browser controls
automation, 719–720declaring/instantiating variables, 721–722early vs. late binding, 722–724Excel, 727–728Outlook, 751–759PowerPoint, 745–749Word, 737–744
debugging database solutions, 596–597error handling, 591–596vs. JavaScript, 350–352procedures, 586user-defi ned functions, 586–591
VBScript, 150–151version control, 545–547, 785–786versioning web apps, 551–561
cautions, 554controlling distribution, 556–557making apps publicly available, 557–559Offi ce 365, 556
vertical navigation bars, 47–48View Selectors, 78–79, 92views, 37, 53–54. See also specifi c views
Action Bar, 93–96controls. See controlsdesign surface, 74–75
control placement, manipulating, 88–92Field List, 79–84linking views, 78–79popup properties, 84–88ribbon, 75–76tiles, 76–78vs. traditional design view, 74–75
duplicating, 92–93recordsources available, 77–78SQL Server views, 814–815tile-bound, 215–216web app vs. SQL Server, 117which to use, 54
Visitors SharePoint group, 484, 501, 502–503Vukovic, Peter, 782
W
Watch window, VBE, 597web apps. See also Access apps
architecture overview, 13–15connecting to
using the Access client, 401–412using Excel, 412–430using SSMS, 399–401, 430–446
creatingblank apps, 26–27via team site, 67–69
deleting, 69deploying, 540
app catalogs, 540–541on-premises SharePoint server, 541–551upgrading and maintaining apps, 559–561versioning apps, 551–561
distributing, 16–18hosting, 15–16inlining, 322–333mobile devices support, 60–65monetizing, 557–559naming conventions, 204opening, 57–58PayPal button, adding, 333–341saving, 58security
agent-based, 482application layer, 484–485linked fi les, 513-536SharePoint security, 485–494terminology, 483–484in the web browser, 494–509
sharing, 69–70site mailbox, adding, 341–362synchronizing data, 468–479templates, 55–56third-party apps, integrating, 311–322trusting, 18–19upgrading, 559–561versioning, 551–561
cautions, 554controlling distribution, 556–557making apps publicly available, 557–559Offi ce 365, 554–556
web browser controls, 102–103, 110–114adding to forms, 410–412binding URLs to table fi elds, 111
bindex.indd 842bindex.indd 842 7/18/2013 4:55:06 PM7/18/2013 4:55:06 PM
843
web services – ZIP code lookup web services
building URLs dynamically with macro actions, 111–112
calling web services, 362–371query string parameters, 112security issues, 113–114static URLs, 110
web services, 310calling
using web browser control, 362–371ZIP code lookups, 371–394
requesting data from, 310returning data from, 310–311
Week constant, 132Weekday constant, 132whole numbers, 38, 182Wix, 10WizHook.SortStringArray() function, 378,
391Word
automation, 737–744
object library, 737object model, 738
work tables, 711workfl ows (SharePoint)
deprecation of, 8–9
X
XML Forms Data Format (XFDF), 713–715XMLHTTPRequest object, 309Xor operator, 130
Y–Z
Year constant, 132, 140–141Year() function, 140–141Yes constant, 131Yes/No data type, 38, 188
ZIP code lookup web services, 371–394
bindex.indd 843bindex.indd 843 7/18/2013 4:55:06 PM7/18/2013 4:55:06 PM