home *** CD-ROM | disk | FTP | other *** search
/ Computer Based Training: …, Windows 95 & NT Basics / a1454501.iso / mo97a03 / AA03.CTL < prev    next >
Encoding:
Text File  |  1997-05-20  |  29.1 KB  |  1,049 lines

  1. *
  2. Screen 3 1 9
  3. *********************************
  4. *          Course:   Advanced Access 97
  5. *          Unit:     Automating with macros        Unit No.:03
  6. *          Topic:    Creating macros        Topic No.: 1
  7. ****
  8. eff.exe a03_101.gif 86 443 0 1 0 15 15 15
  9. *                                   A macro is a set of one or mor
  10. isave 68 458 375 407 text1
  11. textbox 68 458 375 407
  12. showtext 0 0 2
  13. pause 1 1 1 1 1 1 1 1
  14. **
  15. eff.exe a03_102a.gif 210 312 0 1 0 15 15 15
  16. *                                   You can create Access 97 macro
  17. isave 68 412 375 339 text2
  18. growbox 68 412 375 339
  19. showtext 0 0 4
  20. pause 1 1 1 1 1 1 1 1
  21. **
  22. eff.exe a03_103a.gif 179 123 0 1 0 15 15 15
  23. *                                   You can also define condition 
  24. isave 68 344 375 271 text3
  25. growbox 68 344 375 271
  26. showtext 0 0 4
  27. pause 1 1 1 1 1 1 1 1
  28. **
  29. image memory text3 0 68 344
  30. image memory text2 0 68 412
  31. image memory text1 0 68 458
  32. *
  33. eff.exe a03_104a.gif 93 312 0 1 0 15 15 15
  34. *                                   Access 97 provides various typ
  35. isave 69 457 348 389 text1
  36. textbox 69 457 348 389
  37. showtext 0 0 3
  38. pause 1 1 1 1 1 1 1 1
  39. **
  40. eff.exe a03_105a.gif 191 221 0 1 0 15 15 15
  41. eff.exe a03_105b.gif 377 390 0 1 0 15 15 15
  42. *                                   For example, you can use macro
  43. isave 69 394 348 304 text2
  44. growbox 69 394 348 304
  45. showtext 0 0 5
  46. pause 1 1 1 1 1 1 1 1
  47. **
  48. eff.exe a03_106a.gif 377 390 0 1 0 15 15 15
  49. eff.exe a03_106b.gif 191 226 0 1 0 15 15 15
  50. *                                   ≥ execute a select or action q
  51. isave 69 309 348 270 text3
  52. growbox 69 309 348 270
  53. showtext 0 0 2
  54. pause 1 1 1 1 1 1 1 1
  55. **
  56. eff.exe a03_107a.gif 196 226 0 1 0 15 15 15
  57. eff.exe a03_107b.gif 352 375 0 1 0 15 15 15
  58. *                                   ≥ move, size, minimize, maximi
  59. isave 69 275 348 202 text4
  60. growbox 69 275 348 202
  61. showtext 0 0 4
  62. pause 1 1 1 1 1 1 1 1
  63. **
  64. image memory text4 0 69 275
  65. image memory text3 0 69 309
  66. image memory text2 0 69 394
  67. image memory text1 0 69 457
  68. *
  69. eff.exe a03_108a.gif 196 207 0 1 0 15 15 15
  70. eff.exe a03_108b.gif 354 284 0 1 0 15 15 15
  71. *                                   Other uses of macros includ
  72. isave 69 455 400 387 text1
  73. textbox 69 455 400 387
  74. showtext 0 0 3
  75. pause 1 1 1 1 1 1 1 1
  76. **
  77. eff.exe a03_109a.gif 355 282 0 1 0 15 15 15
  78. *                                   ≥ displaying warning or inform
  79. isave 69 392 400 353 text2
  80. growbox 69 392 400 353
  81. showtext 0 0 2
  82. pause 1 1 1 1 1 1 1 1
  83. **
  84. *qcall AA03q 030101
  85. eff.exe a03_110a.gif 173 294 0 1 0 15 15 15
  86. *                                   ≥ sending data from a table, q
  87. isave 69 358 400 285 text3
  88. growbox 69 358 400 285
  89. showtext 0 0 4
  90. pause 1 1 1 1 1 1 1 1
  91. **
  92. image memory text3 0 69 358
  93. image memory text2 0 69 392
  94. image memory text1 0 69 455
  95. **
  96. qcall AA03q 030101
  97. eff.exe a03_111a.gif 135 294 0 1 0 15 15 15
  98. eff.exe a03_111b.gif 136 105 0 1 0 15 15 15
  99. *                                   With 49 macro actions to choos
  100. isave 241 430 492 362 text1
  101. textbox 241 430 492 362
  102. showtext 0 0 3
  103. pause 1 1 1 1 1 1 1 1
  104. **
  105. image memory text1 0 241 430
  106. *
  107. eff.exe a03_112a.gif 135 300 0 1 0 15 15 15
  108. *                                   Suppose you have a database ca
  109. isave 100 426 406 358 text1
  110. textbox 100 426 406 358
  111. showtext 0 0 3
  112. pause 1 1 1 1 1 1 1 1
  113. **
  114. image memory text1 0 100 426
  115. *
  116. eff.exe a03_113a.gif 403 362 0 1 0 15 15 15
  117. eff.exe a03_113b.gif 147 241 0 1 0 15 15 15
  118. *                                   You could create a simple macr
  119. isave 71 452 292 384 text1
  120. textbox 71 452 292 384
  121. showtext 0 0 3
  122. pause 1 1 1 1 1 1 1 1
  123. **
  124. eff.exe a03_114a.gif 276 317 0 1 0 15 15 15
  125. eff.exe a03_114b.gif 403 362 0 1 0 15 15 15
  126. *                                   Then, whenever you update the 
  127. isave 71 389 292 282 text2
  128. growbox 71 389 292 282
  129. showtext 0 0 6
  130. pause 1 1 1 1 1 1 1 1
  131. **
  132. image memory text2 0 71 389
  133. image memory text1 0 71 452
  134. *
  135.  
  136.  
  137.  
  138.  
  139.  
  140. SimScrn 3 2 9
  141. *********************************
  142. eff.exe a03_115.gif 0 459 0 1 0 15 15 15
  143. *                                   To create a macro in Access yo
  144. isave 21 378 290 310 text1
  145. textbox 21 378 290 310
  146. showtext 0 0 3
  147. pause 1 1 1 1 1 1 1 1
  148. **
  149. *                                   Alternatively, you can select 
  150. notebox 15 284 296 
  151. **
  152. eff.exe a03_117a.gif 2 452 0 1 0 15 15 15
  153. eff.exe a03_117b.gif 2 18 0 1 0 15 15 15
  154. *                                   The top pane of the Macro wind
  155. isave 21 315 290 259 text2
  156. growbox 21 315 290 259
  157. showtext 0 0 3
  158. pause 1 1 1 1 1 1 1 1
  159. **
  160. image memory text2 0 21 315
  161. image memory text1 0 21 378
  162. *
  163. eff.exe a03_118a.gif 3 430 0 1 0 15 15 15
  164. *                                   You start by selecting a macro
  165. isave 302 454 629 403 text1
  166. textbox 302 454 629 403
  167. showtext 0 0 2
  168. pause 1 1 1 1 1 1 1 1
  169. **
  170. eff.exe a03_119a.gif 3 430 0 1 0 15 15 15
  171. *                                   The bottom pane of the Macro w
  172. isave 302 408 629 335 text2
  173. growbox 302 408 629 335
  174. showtext 0 0 4
  175. pause 1 1 1 1 1 1 1 1
  176. **
  177. eff.exe a03_120a.gif 85 378 0 1 0 15 15 15
  178. eff.exe a03_120b.gif 3 275 0 1 0 15 15 15
  179. *                                   The right-hand side of the Act
  180. isave 302 340 629 250 text3
  181. growbox 302 340 629 250
  182. showtext 0 0 5
  183. pause 1 1 1 1 1 1 1 1
  184. **
  185. image memory text3 0 302 340
  186. image memory text2 0 302 408
  187. image memory text1 0 302 454
  188. *
  189. eff.exe a03_121a.gif 26 430 0 1 0 15 15 15
  190. eff.exe a03_121b.gif 297 431 0 1 0 15 15 15
  191. eff.exe a03_121c.gif 4 176 0 1 0 15 15 15
  192. eff.exe a03_121d.gif 330 187 0 1 0 15 15 15
  193. *                                   You can press F6 to move from 
  194. isave 375 453 606 402 text1
  195. textbox 375 453 606 402
  196. showtext 0 0 2
  197. pause 1 1 1 1 1 1 1 1
  198. **
  199. eff.exe a03_122.gif 0 459 0 1 0 15 15 15
  200. *eff.exe a03_122a.gif 3 427 0 1 0 15 15 15
  201. *eff.exe a03_122b.gif 3 189 0 1 0 15 15 15
  202. *eff.exe a03_122c.gif 345 119 0 1 0 15 15 15
  203. *                                   At the Destination Database fi
  204. isave 375 407 606 317 text2
  205. growbox 375 407 606 317
  206. showtext 0 0 5
  207. pause 1 1 1 1 1 1 1 1
  208. **
  209. eff.exe a03_123a.gif 0 459 0 1 0 15 15 15
  210. *                                   When you use the Tab key to mo
  211. isave 375 322 606 198 text3
  212. growbox 375 322 606 198
  213. showtext 0 0 7
  214. pause 1 1 1 1 1 1 1 1
  215. **
  216. image memory text3 0 375 322
  217. image memory text2 0 375 407
  218. image memory text1 0 375 453
  219. *
  220. eff.exe a03_124a.gif 0 459 0 1 0 15 15 15
  221. *                                   The drop-down list at the Sour
  222. isave 363 406 620 321 text1
  223. textbox 363 406 620 321
  224. showtext 0 0 4
  225. pause 1 1 1 1 1 1 1 1
  226. **
  227. eff.exe a03_125a.gif 3 247 0 1 0 15 15 15
  228. eff.exe a03_125b.gif 3 158 0 1 0 15 15 15
  229. eff.exe a03_125c.gif 350 125 0 1 0 15 15 15
  230. *                                   The list at the Source Object 
  231. isave 363 326 620 236 text2
  232. growbox 363 326 620 236
  233. showtext 0 0 5
  234. pause 1 1 1 1 1 1 1 1
  235. **
  236. eff.exe a03_126a.gif 3 144 0 1 0 15 15 15
  237. eff.exe a03_126b.gif 544 175 0 1 0 15 15 15
  238. *                                   Remember, you can press F1 at 
  239. isave 363 241 620 185 text3
  240. growbox 363 241 620 185
  241. showtext 0 0 3
  242. pause 1 1 1 1 1 1 1 1
  243. **
  244. image memory text3 0 363 241
  245. image memory text2 0 363 326
  246. image memory text1 0 363 406
  247. *
  248. eff.exe a03_127a.gif 125 431 0 1 0 15 15 15
  249. eff.exe a03_127b.gif 96 28 0 1 0 15 15 15
  250. *                                   When you place the cursor in t
  251. isave 358 359 622 291 text1
  252. textbox 358 359 622 291
  253. showtext 0 0 3
  254. pause 1 1 1 1 1 1 1 1
  255. **
  256. qcall AA03q 030102
  257. eff.exe a03_128a.gif 145 417 0 1 0 15 15 15
  258. *                                   This is optional but can prove
  259. isave 358 296 622 206 text2
  260. growbox 358 296 622 206
  261. showtext 0 0 5
  262. pause 1 1 1 1 1 1 1 1
  263. **
  264. image memory text2 0 358 296
  265. image memory text1 0 358 359
  266. *
  267. eff.exe a03_129a.gif 1 416 0 1 0 15 15 15
  268. eff.exe a03_129b.gif 13 176 0 1 0 15 15 15
  269. *                                   Now you can select a second ma
  270. isave 359 363 614 295 text1
  271. textbox 359 363 614 295
  272. showtext 0 0 3
  273. pause 1 1 1 1 1 1 1 1
  274. **
  275. eff.exe a03_130a.gif 1 416 0 1 0 15 15 15
  276. *                                   You may want to choose MsgBox,
  277. isave 359 300 614 210 text2
  278. growbox 359 300 614 210
  279. showtext 0 0 5
  280. pause 1 1 1 1 1 1 1 1
  281. **
  282. eff.exe a03_131a.gif 25 378 0 1 0 15 15 15
  283. eff.exe a03_131b.gif 13 176 0 1 0 15 15 15
  284. eff.exe a03_131c.gif 406 176 0 1 0 15 15 15
  285. *                                   You can now Tab to the Comment
  286. isave 359 215 614 159 text3
  287. growbox 359 215 614 159
  288. showtext 0 0 3
  289. pause 1 1 1 1 1 1 1 1
  290. **
  291. image memory text3 0 359 215
  292. image memory text2 0 359 300
  293. image memory text1 0 359 363
  294. *
  295. eff.exe a03_132a.gif 3 431 0 1 0 15 15 15
  296. eff.exe a03_132b.gif 3 378 0 1 0 15 15 15
  297. eff.exe a03_132c.gif 346 378 0 1 0 15 15 15
  298. *                                   Then you switch panes and type
  299. isave 367 362 621 294 text1
  300. textbox 367 362 621 294
  301. showtext 0 0 3
  302. pause 1 1 1 1 1 1 1 1
  303. **
  304. eff.exe a03_133a.gif 3 430 0 1 0 15 15 15
  305. eff.exe a03_133b.gif 3 191 0 1 0 15 15 15
  306. eff.exe a03_133c.gif 346 125 0 1 0 15 15 15
  307. *                                   If you want a beep to sound wh
  308. isave 367 299 621 209 text2
  309. growbox 367 299 621 209
  310. showtext 0 0 5
  311. pause 1 1 1 1 1 1 1 1
  312. **
  313. eff.exe a03_134a.gif 3 173 0 1 0 15 15 15
  314. eff.exe a03_134b.gif 348 125 0 1 0 15 15 15
  315. *                                   At the Type field, you choose 
  316. isave 367 214 621 141 text3
  317. growbox 367 214 621 141
  318. showtext 0 0 4
  319. pause 1 1 1 1 1 1 1 1
  320. **
  321. image memory text3 0 367 214
  322. image memory text2 0 367 299
  323. image memory text1 0 367 362
  324. *
  325. eff.exe a03_135a.gif 3 430 0 1 0 15 15 15
  326. eff.exe a03_135b.gif 3 154 0 1 0 15 15 15
  327. eff.exe a03_135c.gif 346 125 0 1 0 15 15 15
  328. *                                   Next you type the title you wa
  329. isave 148 220 468 169 text1
  330. textbox 148 220 468 169
  331. showtext 0 0 2
  332. pause 1 1 1 1 1 1 1 1
  333. **
  334. eff.exe a03_136a.gif 3 457 0 1 0 15 15 15
  335. *                                   You must save a macro before y
  336. isave 148 174 468 101 text2
  337. growbox 148 174 468 101
  338. showtext 0 0 4
  339. pause 1 1 1 1 1 1 1 1
  340. **
  341. *                                   You can save a macro in anothe
  342. notebox 148 314 463 
  343. **
  344. eff.exe a03_138a.gif 20 457 0 1 0 15 15 15
  345. *                                   After entering a name for the 
  346. isave 148 106 468 50 text3
  347. growbox 148 106 468 50
  348. showtext 0 0 3
  349. pause 1 1 1 1 1 1 1 1
  350. **
  351. image memory text3 0 148 106
  352. image memory text2 0 148 174
  353. image memory text1 0 148 220
  354. *
  355.  
  356.  
  357.  
  358.  
  359. SimScrn 3 3 9
  360. *********************************
  361. eff.exe a03_139.gif 0 459 0 1 0 15 15 15
  362. *                                   Access 97 provides a good way 
  363. isave 9 360 286 309 text1
  364. textbox 9 360 286 309
  365. showtext 0 0 2
  366. pause 1 1 1 1 1 1 1 1
  367. **
  368. eff.exe a03_140a.gif 164 434 0 1 0 15 15 15
  369. eff.exe a03_140b.gif 369 434 0 1 0 15 15 15
  370. eff.exe a03_140c.gif 164 275 0 1 0 15 15 15
  371. eff.exe a03_140d.gif 297 275 0 1 0 15 15 15
  372. *                                   To activate single-stepping yo
  373. isave 9 314 286 241 text2
  374. growbox 9 314 286 241
  375. showtext 0 0 4
  376. pause 1 1 1 1 1 1 1 1
  377. **
  378. eff.exe a03_141a.gif 297 434 0 1 0 15 15 15
  379. eff.exe a03_141b.gif 346 434 0 1 0 15 15 15
  380. eff.exe a03_141c.gif 346 119 0 1 0 15 15 15
  381. *                                   Now you click the Run button (
  382. isave 9 246 286 190 text3
  383. growbox 9 246 286 190
  384. showtext 0 0 3
  385. pause 1 1 1 1 1 1 1 1
  386. **
  387. image memory text3 0 9 246
  388. image memory text2 0 9 314
  389. image memory text1 0 9 360
  390. *
  391. eff.exe a03_142a.gif 109 431 0 1 0 15 15 15
  392. *                                   Access 97 now opens the Macro 
  393. isave 6 179 344 128 text1
  394. textbox 6 179 344 128
  395. showtext 0 0 2
  396. pause 1 1 1 1 1 1 1 1
  397. **
  398. eff.exe a03_143a.gif 108 406 0 1 0 15 15 15
  399. *                                   In this dialog box you will se
  400. isave 6 133 344 60 text2
  401. growbox 6 133 344 60
  402. showtext 0 0 4
  403. pause 1 1 1 1 1 1 1 1
  404. **
  405. eff.exe a03a144a.gif 108 377 0 1 0 15 15 15
  406. eff.exe a03a144b.gif 514 377 0 1 0 15 15 15
  407. eff.exe a03a144c.gif 109 255 0 1 0 15 15 15
  408. eff.exe a03a144d.gif 514 265 0 1 0 15 15 15
  409. qcall AA03q 030103
  410. eff.exe a03_144a.gif 446 367 0 1 0 15 15 15
  411. *                                   You click the Step button to c
  412. isave 6 65 344 9 text3
  413. growbox 6 65 344 9
  414. showtext 0 0 3
  415. pause 1 1 1 1 1 1 1 1
  416. **
  417. image memory text3 0 6 65
  418. image memory text2 0 6 133
  419. image memory text1 0 6 179
  420. *
  421. qcall AA03q 030104
  422. eff.exe a03_145a.gif 109 366 0 1 0 15 15 15
  423. *                                   If you click the Continue butt
  424. isave 352 151 621 66 text1
  425. textbox 352 151 621 66
  426. showtext 0 0 4
  427. pause 1 1 1 1 1 1 1 1
  428. **
  429. image memory text1 0 352 151
  430. *
  431. eff.exe a03_146a.gif 77 430 0 1 0 15 15 15
  432. eff.exe a03_146b.gif 77 290 0 1 0 15 15 15
  433. eff.exe a03_146c.gif 510 290 0 1 0 15 15 15
  434. *                                   The next macro action is now s
  435. isave 245 219 479 151 text1
  436. textbox 245 219 479 151
  437. showtext 0 0 3
  438. pause 1 1 1 1 1 1 1 1
  439. **
  440. eff.exe a03_147a.gif 77 240 0 1 0 15 15 15
  441. eff.exe a03_147b.gif 510 320 0 1 0 15 15 15
  442. *                                   You could use the Halt button 
  443. isave 245 156 479 83 text2
  444. growbox 245 156 479 83
  445. showtext 0 0 4
  446. pause 1 1 1 1 1 1 1 1
  447. **
  448. eff.exe a03_148a.gif 164 430 0 1 0 15 15 15
  449. eff.exe a03_148b.gif 164 366 0 1 0 15 15 15
  450. eff.exe a03_148c.gif 447 366 0 1 0 15 15 15
  451. *                                   Here, let's run the next actio
  452. isave 245 88 479 32 text3
  453. growbox 245 88 479 32
  454. showtext 0 0 3
  455. pause 1 1 1 1 1 1 1 1
  456. **
  457. image memory text3 0 245 88
  458. image memory text2 0 245 156
  459. image memory text1 0 245 219
  460. *
  461. eff.exe a03_149a.gif 3 399 0 1 0 15 15 15
  462. *                                   The message box you designed u
  463. isave 341 145 619 77 text1
  464. textbox 341 145 619 77
  465. showtext 0 0 3
  466. pause 1 1 1 1 1 1 1 1
  467. **
  468. image memory text1 0 341 145
  469. *
  470. eff.exe a03_150a.gif 3 368 0 1 0 15 15 15
  471. *                                   You click OK to remove the mes
  472. isave 22 123 319 89 text1
  473. textbox 22 123 319 89
  474. showtext 0 0 1
  475. pause 1 1 1 1 1 1 1 1
  476. **
  477. eff.exe a03_151a.gif 190 434 0 1 0 15 15 15
  478. eff.exe a03_151b.gif 521 455 0 1 0 15 15 15
  479. *                                   Finally you can click the Clos
  480. isave 22 94 319 38 text2
  481. growbox 22 94 319 38
  482. showtext 0 0 3
  483. pause 1 1 1 1 1 1 1 1
  484. **
  485. image memory text2 0 22 94
  486. image memory text1 0 22 123
  487. *
  488. Simscrn 3 4 9
  489. eff.exe a03_152.gif 0 459 0 1 0 15 15 15
  490. *                                   Sometimes you may want to conv
  491. isave 179 213 480 145 text1
  492. textbox 179 213 480 145
  493. showtext 0 0 3
  494. pause 1 1 1 1 1 1 1 1
  495. **
  496. eff.exe a03_153a.gif 4 457 0 1 0 15 15 15
  497. eff.exe a03_153b.gif 318 307 0 1 0 15 15 15
  498. *                                   To do this you choose Save As/
  499. isave 179 150 480 94 text2
  500. growbox 179 150 480 94
  501. showtext 0 0 3
  502. pause 1 1 1 1 1 1 1 1
  503. **
  504. eff.exe a03_154a.gif 18 457 0 1 0 15 15 15
  505. *                                   The top radio button is select
  506. isave 179 99 480 43 text3
  507. growbox 179 99 480 43
  508. showtext 0 0 3
  509. pause 1 1 1 1 1 1 1 1
  510. **
  511. image memory text3 0 179 99
  512. image memory text2 0 179 150
  513. image memory text1 0 179 213
  514. *
  515. eff.exe a03_155a.gif 118 330 0 1 0 15 15 15
  516. eff.exe a03_155b.gif 406 349 0 1 0 15 15 15
  517. *                                   You select the Save As Visual 
  518. isave 145 216 405 165 text1
  519. textbox 145 216 405 165
  520. showtext 0 0 2
  521. pause 1 1 1 1 1 1 1 1
  522. **
  523. eff.exe a03_156a.gif 118 383 0 1 0 15 15 15
  524. eff.exe a03_156b.gif 12 18 0 1 0 15 15 15
  525. *                                   Then you click the Convert but
  526. isave 145 170 405 131 text2
  527. growbox 145 170 405 131
  528. showtext 0 0 2
  529. pause 1 1 1 1 1 1 1 1
  530. **
  531. eff.exe a03_157a.gif 65 431 0 1 0 15 15 15
  532. eff.exe a03_157b.gif 22 403 0 1 0 15 15 15
  533. eff.exe a03_157c.gif 65 403 0 1 0 15 15 15
  534. *                                   The Modules tab becomes the ac
  535. isave 145 136 405 12 text3
  536. growbox 145 136 405 12
  537. showtext 0 0 7
  538. pause 1 1 1 1 1 1 1 1
  539. **
  540. image memory text3 0 145 136
  541. image memory text2 0 145 170
  542. image memory text1 0 145 216
  543. *
  544. eff.exe a03_158a.gif 5 383 0 1 0 15 15 15
  545. eff.exe a03_158b.gif 5 18 0 1 0 15 15 15
  546. *                                   When you click OK the converte
  547. isave 61 267 376 216 text1
  548. textbox 61 267 376 216
  549. showtext 0 0 2
  550. pause 1 1 1 1 1 1 1 1
  551. **
  552. eff.exe a03_159a.gif 5 383 0 1 0 15 15 15
  553. eff.exe a03_159b.gif 456 345 0 1 0 15 15 15
  554. *                                   You click Design to open the V
  555. isave 61 221 376 182 text2
  556. growbox 61 221 376 182
  557. showtext 0 0 2
  558. pause 1 1 1 1 1 1 1 1
  559. **
  560. eff.exe a03_160a.gif 2 452 0 1 0 15 15 15
  561. *                                   Now you can see the converted 
  562. isave 61 187 376 131 text3
  563. growbox 61 187 376 131
  564. showtext 0 0 3
  565. pause 1 1 1 1 1 1 1 1
  566. **
  567. eff.exe a03_161a.gif 521 455 0 1 0 15 15 15
  568. eff.exe a03_161b.gif 550 250 0 1 0 15 15 15
  569. *                                   You click the Close Window but
  570. isave 61 136 376 80 text4
  571. growbox 61 136 376 80
  572. showtext 0 0 3
  573. pause 1 1 1 1 1 1 1 1
  574. **
  575. image memory text4 0 61 136
  576. image memory text3 0 61 187
  577. image memory text2 0 61 221
  578. image memory text1 0 61 267
  579. *
  580. *          Topic:    Hands-on: Creating a macro        Topic No.: 2
  581. ****
  582.  
  583.  
  584.  
  585.  
  586. *          Topic:    Hands-on: Creating a macro        Topic No.: 2
  587. ****
  588. SimScrn 3 5 9
  589. *********************************
  590. MoveCtrl 1 0 410 0
  591. *                                   Usually, when you open a datab
  592. isave 42 350 367 282 text1
  593. textbox 42 350 367 282
  594. showtext 0 0 3
  595. pause 1 1 1 1 1 1 1 1
  596. **
  597. *                                   You can create a simple macro 
  598. isave 42 287 367 214 text2
  599. growbox 42 287 367 214
  600. showtext 0 0 4
  601. pause 1 1 1 1 1 1 1 1
  602. ***
  603. *                                   Access 97 runs a macro automat
  604. isave 42 219 367 146 text3
  605. growbox 42 219 367 146
  606. showtext 0 0 4
  607. pause 1 1 1 1 1 1 1 1
  608. *
  609. *
  610. image memory text3 0 42 219
  611. image memory text2 0 42 287
  612. image memory text1 0 42 350
  613. **
  614. exercise 01 1 120 70
  615. *
  616. task 01 0101 1 300 320 8 50 67 5 5
  617. *
  618. pause 1 1 1 1 1 1 1 1
  619. **
  620. *          Topic:    Ways to run macros        Topic No.: 3
  621. ****
  622. SimScrn 3 6 9
  623. *********************************
  624. movectrl 1 493 426 0 0
  625. eff.exe a03_301.gif 0 459 0 1 0 15 15 15
  626. *                                   Normally you would run a macro
  627. isave 51 315 290 230 text1
  628. textbox 51 315 290 230
  629. showtext 0 0 4
  630. pause 1 1 1 1 1 1 1 1
  631. **
  632. *                                   You can run a macro from the D
  633. notebox 30 209 321 
  634. **
  635. eff.exe a03_303a.gif 307 361 0 1 0 15 15 15
  636. *                                   After that, you could create a
  637. isave 51 235 290 162 text2
  638. growbox 51 235 290 162
  639. showtext 0 0 4
  640. pause 1 1 1 1 1 1 1 1
  641. **
  642. eff.exe a03_304a.gif 307 361 0 1 0 15 15 15
  643. *                                   You can also attach a macro to
  644. isave 51 167 290 94 text3
  645. growbox 51 167 290 94
  646. showtext 0 0 4
  647. pause 1 1 1 1 1 1 1 1
  648. **
  649. *                                   An event is an action, such as
  650. notebox 59 427 280 
  651. **
  652. image memory text3 0 51 167
  653. image memory text2 0 51 235
  654. image memory text1 0 51 315
  655. *
  656. eff.exe a03_306a.gif 180 330 0 1 0 15 15 15
  657. eff.exe a03_306b.gif 480 425 0 1 0 15 15 15
  658. eff.exe a03_306c.gif 329 194 0 1 0 15 15 15
  659. *                                   Suppose you would like to add 
  660. isave 43 151 463 100 text1
  661. textbox 43 151 463 100
  662. showtext 0 0 2
  663. pause 1 1 1 1 1 1 1 1
  664. **
  665. eff.exe a03_307a.gif 65 457 0 1 0 15 15 15
  666. eff.exe a03_307b.gif 480 425 0 1 0 15 15 15
  667. *                                   First you choose View - Toolba
  668. isave 43 105 463 49 text2
  669. growbox 43 105 463 49
  670. showtext 0 0 3
  671. pause 1 1 1 1 1 1 1 1
  672. **
  673. eff.exe a03_308a.gif 50 457 0 1 0 15 15 15
  674. eff.exe a03_308b.gif 550 457 0 1 0 15 15 15
  675. *                                   Now you click the Commands tab
  676. isave 43 54 463 15 text3
  677. growbox 43 54 463 15
  678. showtext 0 0 2
  679. pause 1 1 1 1 1 1 1 1
  680. **
  681. image memory text3 0 43 54
  682. image memory text2 0 43 105
  683. image memory text1 0 43 151
  684. *
  685. eff.exe a03_309a.gif 143 386 0 1 0 15 15 15
  686. *                                   You use the scroll bar in the 
  687. isave 18 204 322 136 text1
  688. textbox 18 204 322 136
  689. showtext 0 0 3
  690. pause 1 1 1 1 1 1 1 1
  691. **
  692. eff.exe a03_310a.gif 135 382 0 1 0 15 15 15
  693. eff.exe a03_310b.gif 135 340 0 1 0 15 15 15
  694. *                                   When you select All Macros fro
  695. isave 18 141 322 68 text2
  696. growbox 18 141 322 68
  697. showtext 0 0 4
  698. pause 1 1 1 1 1 1 1 1
  699. **
  700. eff.exe a03_311a.gif 135 458 0 1 0 15 15 15
  701. eff.exe a03_311b.gif 151 200 0 1 0 15 15 15
  702. *                                   You select the macro you requi
  703. isave 18 73 322 17 text3
  704. growbox 18 73 322 17
  705. showtext 0 0 3
  706. pause 1 1 1 1 1 1 1 1
  707. **
  708. image memory text3 0 18 73
  709. image memory text2 0 18 141
  710. image memory text1 0 18 204
  711. *
  712. eff.exe a03_312a.gif 154 458 0 1 0 15 15 15
  713. *                                   When you drag the command over
  714. isave 3 456 460 388 text1
  715. textbox 3 456 460 388
  716. showtext 0 0 3
  717. pause 1 1 1 1 1 1 1 1
  718. **
  719. eff.exe a03_313a.gif 298 318 0 1 0 15 15 15
  720. eff.exe a03_313b.gif 292 288 0 1 0 15 15 15
  721. *                                   When you release the mouse, th
  722. isave 3 393 460 354 text2
  723. growbox 3 393 460 354
  724. showtext 0 0 2
  725. pause 1 1 1 1 1 1 1 1
  726. **
  727. eff.exe a03_314a.gif 300 316 0 1 0 15 15 15
  728. eff.exe a03_314b.gif 424 109 0 1 0 15 15 15
  729. *
  730. MoveCtrl 1 0 410 0 0
  731. isave 3 359 460 320 text3
  732. growbox 3 359 460 320
  733. showtext 0 0 2
  734. pause 1 1 1 1 1 1 1 1
  735. **
  736. MoveCtrl 1 493 410 0 0
  737. image memory text3 0 3 359
  738. image memory text2 0 3 393
  739. image memory text1 0 3 456
  740. *
  741. qcall AA03q 030301
  742. eff.exe a03_315a.gif 7 457 0 1 0 15 15 15
  743. *                                   Now you can run the macro from
  744. isave 302 414 562 329 text1
  745. textbox 302 414 562 329
  746. showtext 0 0 4
  747. pause 1 1 1 1 1 1 1 1
  748. **
  749. eff.exe a03_316a.gif 102 457 0 1 0 15 15 15
  750. *                                   When you point to the Macro op
  751. isave 302 334 562 244 text2
  752. growbox 302 334 562 244
  753. showtext 0 0 5
  754. pause 1 1 1 1 1 1 1 1
  755. **
  756. *                                   To remove the command from the
  757. notebox 304 213 567 
  758. **
  759. image memory text2 0 302 334
  760. image memory text1 0 302 414
  761. *
  762. eff.exe a03_318a.gif 7 457 0 1 0 15 15 15
  763. *
  764. MoveCtrl 1 0 410 0 0
  765. isave 171 242 436 174 text1
  766. textbox 171 242 436 174
  767. showtext 0 0 3
  768. pause 1 1 1 1 1 1 1 1
  769. **
  770. eff.exe a03_319a.gif 170 325 0 1 0 15 15 15
  771. eff.exe a03_319b.gif 562 415 0 1 0 15 15 15
  772. *                                   Suppose you would like to plac
  773. isave 171 179 436 89 text2
  774. growbox 171 179 436 89
  775. showtext 0 0 5
  776. pause 1 1 1 1 1 1 1 1
  777. **
  778. eff.exe a03_320a.gif 50 431 0 1 0 15 15 15
  779. *                                   With the toolbar you want to a
  780. isave 171 94 436 4 text3
  781. growbox 171 94 436 4
  782. showtext 0 0 5
  783. pause 1 1 1 1 1 1 1 1
  784. **
  785. image memory text3 0 171 94
  786. image memory text2 0 171 179
  787. image memory text1 0 171 242
  788. *
  789. eff.exe a03_321a.gif 281 336 0 1 0 15 15 15
  790. eff.exe a03_321b.gif 506 449 0 1 0 15 15 15
  791. *                                   You then drag the command to t
  792. isave 258 458 509 373 text1
  793. textbox 258 458 509 373
  794. showtext 0 0 4
  795. pause 1 1 1 1 1 1 1 1
  796. **
  797. eff.exe a03_322a.gif 298 318 0 1 0 15 15 15
  798. eff.exe a03_322b.gif 506 449 0 1 0 15 15 15
  799. eff.exe a03_322c.gif 298 186 0 1 0 15 15 15
  800. eff.exe a03_322d.gif 506 186 0 1 0 15 15 15
  801. *                                   When you release the mouse, th
  802. isave 258 378 509 305 text2
  803. growbox 258 378 509 305
  804. showtext 0 0 4
  805. pause 1 1 1 1 1 1 1 1
  806. **
  807. eff.exe a03a323a.gif 300 316 0 1 0 15 15 15
  808. eff.exe a03a323b.gif 537 415 0 1 0 15 15 15
  809. eff.exe a03a323c.gif 300 186 0 1 0 15 15 15
  810. eff.exe a03a323d.gif 537 186 0 1 0 15 15 15
  811. qcall AA03q 030302
  812. eff.exe a03_323a.gif 194 310 0 1 0 15 15 15
  813. *                                   You can click the Modify Selec
  814. isave 258 310 509 254 text3
  815. growbox 258 310 509 254
  816. showtext 0 0 3
  817. pause 1 1 1 1 1 1 1 1
  818. **
  819. image memory text3 0 258 310
  820. image memory text2 0 258 378
  821. image memory text1 0 258 458
  822. *
  823. eff.exe a03_324a.gif 194 176 0 1 0 15 15 15
  824. *                                   For example, you may want to c
  825. isave 302 293 572 242 text1
  826. textbox 302 293 572 242
  827. showtext 0 0 2
  828. pause 1 1 1 1 1 1 1 1
  829. **
  830. eff.exe a03_325a.gif 197 430 0 1 0 15 15 15
  831. eff.exe a03_325b.gif 197 310 0 1 0 15 15 15
  832. *                                   Then you click Close to return
  833. isave 302 247 572 191 text2
  834. growbox 302 247 572 191
  835. showtext 0 0 3
  836. pause 1 1 1 1 1 1 1 1
  837. **
  838. image memory text2 0 302 247
  839. image memory text1 0 302 293
  840. *
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850. SimScrn 3 7 9
  851. *********************************
  852. eff.exe a03_326.gif 0 459 0 1 0 15 15 15
  853. *                                   Another way that you can run a
  854. isave 335 415 611 347 text1
  855. textbox 335 415 611 347
  856. showtext 0 0 3
  857. pause 1 1 1 1 1 1 1 1
  858. **
  859. eff.exe a03_327a.gif 440 148 0 1 0 15 15 15
  860. *                                   Then Access carries out the ac
  861. isave 335 352 611 296 text2
  862. growbox 335 352 611 296
  863. showtext 0 0 3
  864. pause 1 1 1 1 1 1 1 1
  865. **
  866. eff.exe a03_328a.gif 2 452 0 1 0 15 15 15
  867. *                                   Suppose you would like to use 
  868. isave 335 301 611 228 text3
  869. growbox 335 301 611 228
  870. showtext 0 0 4
  871. pause 1 1 1 1 1 1 1 1
  872. **
  873. image memory text3 0 335 301
  874. image memory text2 0 335 352
  875. image memory text1 0 335 415
  876. MoveCtrl 1 493 410 0 0
  877. *
  878. eff.exe a03_329a.gif 472 434 0 1 0 15 15 15
  879. eff.exe a03_329b.gif 82 103 0 1 0 15 15 15
  880. *                                   You begin by using the New Obj
  881. isave 220 240 517 189 text1
  882. textbox 220 240 517 189
  883. showtext 0 0 2
  884. pause 1 1 1 1 1 1 1 1
  885. **
  886. eff.exe a03_330a.gif 2 452 0 1 0 15 15 15
  887. *                                   Next you click the Macro Names
  888. isave 220 194 517 138 text2
  889. growbox 220 194 517 138
  890. showtext 0 0 3
  891. pause 1 1 1 1 1 1 1 1
  892. **
  893. eff.exe a03_331a.gif 42 406 0 1 0 15 15 15
  894. eff.exe a03_331b.gif 243 433 0 1 0 15 15 15
  895. eff.exe a03_331c.gif 243 114 0 1 0 15 15 15
  896. *                                   This inserts a Macro Name colu
  897. isave 220 143 517 70 text3
  898. growbox 220 143 517 70
  899. showtext 0 0 4
  900. pause 1 1 1 1 1 1 1 1
  901. **
  902. *                                   A macro group can contain a si
  903. notebox 233 350 498 
  904. **
  905. image memory text3 0 220 143
  906. image memory text2 0 220 194
  907. image memory text1 0 220 240
  908. *
  909. eff.exe a03_333a.gif 0 459 0 1 0 15 15 15
  910. *                                   You type ^5 in the Macro Name 
  911. isave 20 132 343 81 text1
  912. textbox 20 132 343 81
  913. showtext 0 0 2
  914. pause 1 1 1 1 1 1 1 1
  915. **
  916. *                                   If you assign a set of (one or
  917. notebox 40 276 331 
  918. **
  919. eff.exe a03_335a.gif 0 459 0 1 0 15 15 15
  920. *                                   Then you select the macro acti
  921. isave 20 86 343 30 text2
  922. growbox 20 86 343 30
  923. showtext 0 0 3
  924. pause 1 1 1 1 1 1 1 1
  925. **
  926. image memory text2 0 20 86
  927. image memory text1 0 20 132
  928. *
  929. eff.exe a03_336a.gif 11 434 0 1 0 15 15 15
  930. eff.exe a03_336b.gif 13 176 0 1 0 15 15 15
  931. *                                   When you have chosen the actio
  932. isave 213 425 618 357 text1
  933. textbox 213 425 618 357
  934. showtext 0 0 3
  935. pause 1 1 1 1 1 1 1 1
  936. **
  937. *                                   In this case the required argu
  938. notebox 278 335 561 
  939. **
  940. eff.exe a03_338a.gif 31 415 0 1 0 15 15 15
  941. *                                   ≥ Object Name - Customer
  942. isave 213 362 618 306 text2
  943. growbox 213 362 618 306
  944. showtext 0 0 3
  945. pause 1 1 1 1 1 1 1 1
  946. **
  947. image memory text2 0 213 362
  948. image memory text1 0 213 425
  949. *
  950. eff.exe a03_339a.gif 50 385 0 1 0 15 15 15
  951. eff.exe a03_339b.gif 152 431 0 1 0 15 15 15
  952. eff.exe a03_339c.gif 132 178 0 1 0 15 15 15
  953. *                                   ≥ Record - Previou
  954. isave 19 144 367 76 text1
  955. textbox 19 144 367 76
  956. showtext 0 0 3
  957. pause 1 1 1 1 1 1 1 1
  958. **
  959. eff.exe a03_340a.gif 216 373 0 1 0 15 15 15
  960. eff.exe a03_340b.gif 401 397 0 1 0 15 15 15
  961. eff.exe a03_340c.gif 362 178 0 1 0 15 15 15
  962. *                                   ≥ Offset - 
  963. isave 19 81 367 42 text2
  964. growbox 19 81 367 42
  965. showtext 0 0 2
  966. pause 1 1 1 1 1 1 1 1
  967. **
  968. image memory text2 0 19 81
  969. image memory text1 0 19 144
  970. *
  971. eff.exe a03_341a.gif 11 434 0 1 0 15 15 15
  972. eff.exe a03_341b.gif 152 455 0 1 0 15 15 15
  973. eff.exe a03_341c.gif 132 135 0 1 0 15 15 15
  974. *                                   The name you enter at the Macr
  975. isave 35 206 342 155 text1
  976. textbox 35 206 342 155
  977. showtext 0 0 2
  978. pause 1 1 1 1 1 1 1 1
  979. **
  980. eff.exe a03_342a.gif 2 455 0 1 0 15 15 15
  981. *                                   You must call the macro group 
  982. isave 35 160 342 104 text2
  983. growbox 35 160 342 104
  984. showtext 0 0 3
  985. pause 1 1 1 1 1 1 1 1
  986. **
  987. eff.exe a03_343a.gif 134 398 0 1 0 15 15 15
  988. eff.exe a03_343b.gif 292 334 0 1 0 15 15 15
  989. eff.exe a03_343c.gif 134 178 0 1 0 15 15 15
  990. eff.exe a03_343d.gif 362 178 0 1 0 15 15 15
  991. *                                   You click OK to save the macro
  992. isave 35 109 342 53 text3
  993. growbox 35 109 342 53
  994. showtext 0 0 3
  995. pause 1 1 1 1 1 1 1 1
  996. **
  997. image memory text3 0 35 109
  998. image memory text2 0 35 160
  999. image memory text1 0 35 206
  1000.  
  1001. *
  1002. *          Topic:    Hands-on: Modifying a macro group        Topic No.: 4
  1003. ****
  1004.  
  1005.  
  1006. *
  1007. *          Topic:    Hands-on: Modifying a macro group        Topic No.: 4
  1008. ****
  1009.  
  1010.  
  1011. SimScrn 3 8 9
  1012. *********************************
  1013. MoveCtrl 1 493 426 0 0
  1014. *                                   Suppose you wish to use the ke
  1015. isave 94 288 316 220 text1
  1016. textbox 94 288 316 220
  1017. showtext 0 0 3
  1018. pause 1 1 1 1 1 1 1 1
  1019. **
  1020. *                                   You can do this by adding a ma
  1021. isave 94 225 316 152 text2
  1022. growbox 94 225 316 152
  1023. showtext 0 0 4
  1024. pause 1 1 1 1 1 1 1 1
  1025. *
  1026. image memory text2 0 94 225
  1027. image memory text1 0 94 288
  1028. *
  1029. exercise 02 2 120 70
  1030. task 2 0102 317 300 320 7 50 67 5 5
  1031. *
  1032. pause 1 1 1 1 1 1 1 1
  1033. *
  1034. *
  1035. *
  1036. *          Topic:    Hands-on: Modifying a macro group        Topic No.: 4
  1037. ****
  1038. *
  1039.  
  1040. SimScrn 3 9 9
  1041. *********************************
  1042. *
  1043. MoveCtrl 1 493 426 0 0
  1044. *
  1045. task 3 0103 317 300 320 7 50 67 5 5
  1046. *
  1047. pause 1 1 1 1 1 1 1 1
  1048. *
  1049.