frm_ModifBareme.bas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. Version =20
  2. VersionRequired =20
  3. Begin Form
  4. DividingLines = NotDefault
  5. FilterOn = NotDefault
  6. AllowDesignChanges = NotDefault
  7. PictureAlignment =2
  8. DatasheetGridlinesBehavior =3
  9. GridY =10
  10. Width =11515
  11. DatasheetFontHeight =11
  12. ItemSuffix =10
  13. Right =17265
  14. Bottom =7890
  15. DatasheetGridlinesColor =14806254
  16. Filter ="[NomBareme]='Frais Kilométriques (13)' AND [PeriodeValidite]=1"
  17. RecSrcDt = Begin
  18. 0x986c77e99436e440
  19. End
  20. RecordSource ="SELECT tbl_baremes.NomBareme, tbl_baremes.PeriodeValidite, tbl_baremes.BorneInf,"
  21. " tbl_baremes.BorneSup, tbl_baremes.UniteBornes, tbl_baremes.Valeur, tbl_baremes."
  22. "UniteValeur FROM tbl_baremes ORDER BY tbl_baremes.BorneInf; "
  23. OnCurrent ="[Event Procedure]"
  24. DatasheetFontName ="Calibri"
  25. FilterOnLoad =0
  26. ShowPageMargins =0
  27. DisplayOnSharePointSite =1
  28. DatasheetAlternateBackColor =15921906
  29. DatasheetGridlinesColor12 =0
  30. FitToScreen =1
  31. DatasheetBackThemeColorIndex =1
  32. BorderThemeColorIndex =3
  33. ThemeFontIndex =1
  34. ForeThemeColorIndex =0
  35. AlternateBackThemeColorIndex =1
  36. AlternateBackShade =95.0
  37. Begin
  38. Begin Label
  39. BackStyle =0
  40. FontSize =11
  41. FontName ="Calibri"
  42. ThemeFontIndex =1
  43. BackThemeColorIndex =1
  44. BorderThemeColorIndex =0
  45. BorderTint =50.0
  46. ForeThemeColorIndex =0
  47. ForeTint =50.0
  48. GridlineThemeColorIndex =1
  49. GridlineShade =65.0
  50. End
  51. Begin CommandButton
  52. Width =1701
  53. Height =283
  54. FontSize =11
  55. FontWeight =400
  56. FontName ="Calibri"
  57. ForeThemeColorIndex =0
  58. ForeTint =75.0
  59. GridlineThemeColorIndex =1
  60. GridlineShade =65.0
  61. UseTheme =1
  62. Shape =1
  63. Gradient =12
  64. BackThemeColorIndex =4
  65. BackTint =60.0
  66. BorderLineStyle =0
  67. BorderColor =16777215
  68. BorderThemeColorIndex =4
  69. BorderTint =60.0
  70. ThemeFontIndex =1
  71. HoverThemeColorIndex =4
  72. HoverTint =40.0
  73. PressedThemeColorIndex =4
  74. PressedShade =75.0
  75. HoverForeThemeColorIndex =0
  76. HoverForeTint =75.0
  77. PressedForeThemeColorIndex =0
  78. PressedForeTint =75.0
  79. End
  80. Begin TextBox
  81. AddColon = NotDefault
  82. FELineBreak = NotDefault
  83. BorderLineStyle =0
  84. Width =1701
  85. LabelX =-1701
  86. FontSize =11
  87. FontName ="Calibri"
  88. AsianLineBreak =1
  89. BackThemeColorIndex =1
  90. BorderThemeColorIndex =1
  91. BorderShade =65.0
  92. ThemeFontIndex =1
  93. ForeThemeColorIndex =0
  94. ForeTint =75.0
  95. GridlineThemeColorIndex =1
  96. GridlineShade =65.0
  97. End
  98. Begin FormHeader
  99. Height =1052
  100. BackColor =10855845
  101. Name ="EntêteFormulaire"
  102. AlternateBackThemeColorIndex =1
  103. AlternateBackShade =95.0
  104. Begin
  105. Begin Label
  106. OverlapFlags =93
  107. Left =737
  108. Top =56
  109. Width =3005
  110. Height =397
  111. FontSize =13
  112. BorderColor =8355711
  113. Name ="Étiquette0"
  114. Caption ="Mise à jour du barème:"
  115. GridlineColor =10921638
  116. LayoutCachedLeft =737
  117. LayoutCachedTop =56
  118. LayoutCachedWidth =3742
  119. LayoutCachedHeight =453
  120. ForeTint =100.0
  121. End
  122. Begin CommandButton
  123. OverlapFlags =85
  124. Left =113
  125. Top =56
  126. Width =516
  127. Height =396
  128. ForeColor =4210752
  129. Name ="Commande1"
  130. Caption ="Commande1"
  131. ControlTipText ="Fermer formulaire"
  132. GridlineColor =10921638
  133. OnClickEmMacro = Begin
  134. Version =196611
  135. ColumnsShown =8
  136. Begin
  137. Action ="Close"
  138. Argument ="-1"
  139. Argument =""
  140. Argument ="0"
  141. End
  142. Begin
  143. Comment ="_AXL:<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"no\"?>\015\012<UserI"
  144. "nterfaceMacro For=\"Commande1\" xmlns=\"http://schemas.microsoft.com/office/acce"
  145. "ssservices/2009/11/application\" xmlns:a=\"http://schemas.microsoft.com/office/a"
  146. "ccessservices/2009/11/forms\"><"
  147. End
  148. Begin
  149. Comment ="_AXL:Statements><Action Name=\"CloseWindow\"/></Statements></UserInterfaceMacro>"
  150. End
  151. End
  152. ImageData = Begin
  153. 0x2800000010000000100000000100200000000000000000000000000000000000 ,
  154. 0x0000000000000000000000000000000000000000000000000000000010081080 ,
  155. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  156. 0x000000000000000000000000000000000000000040485020100810e0104050ff ,
  157. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  158. 0x0000000000000000000000000000000040404080405860ff106890ff2080a0f0 ,
  159. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  160. 0x0000000000000000607070ff80a0b0ff4080a0ff20a0d0ff40a8e0ff2078a0ff ,
  161. 0x101020ff101020ff000000000000000000000000000000000000000000000000 ,
  162. 0x0000000000000000708890ffa0d8f0ff60d0ffff50c0f0ff30a8e0ff1080b0ff ,
  163. 0xe0d8d0ff102020ff000000000000000000000000000000000000000000000000 ,
  164. 0x0000000000000000708890ffb0e8f0ff80e0ffff60c8f0ff50b8f0ff1088c0ff ,
  165. 0xf0d8d0ff202830ff000000000000000090482030904820ff0000000000000000 ,
  166. 0x0000000000000000808890ffb0e8f0ff80e0ffff60d0ffff404050ff1090c0ff ,
  167. 0xf0e0d0ff303840ff0000000090482030a05030ffa05020ff0000000000000000 ,
  168. 0x00000000000000008090a0ffc0f0ffff90e0ffff70d8ffff60c8f0ff0090c0ff ,
  169. 0xf0e0e0ff404050ff90482030a05030ffd07840ffb05830ffa05020ffa04820ff ,
  170. 0x904820ff904820ff8090a0ffc0f0ffffa0e8ffff80d8ffff70d0f0ff40b0e0ff ,
  171. 0xf0e8e0ff605050ffa05830ffe08860fff09060fff08850ffe07850ffd07040ff ,
  172. 0xb06840ff904820ff8098a0ffc0f0ffffa0e8ffff90e8ffff80e0ffff80b8d0ff ,
  173. 0xf0e8e0ffe09870ffffc0a0ffffb090ffffa070fff09060fff08850ffe07850ff ,
  174. 0xd07040ffa05020ff8098a0ffc0f0ffffc0f8ffffa0e0f0ff90a8b0ffc0c8d0ff ,
  175. 0xf0f0e0ff908080fff0a070ffffc0a0ffffb090ffffb090ffffa880fff0a080ff ,
  176. 0xe09870ffb05030ff90a0a0ffe0f8ffffb0c8d0ff90a0b0fff0f0f0fffff8f0ff ,
  177. 0xf0f0f0ff607080ffe0987050f0a070ffffc0a0ffd06830ffe09870ffe09060ff ,
  178. 0xe08860ffe08050ff90a0b0ff90a8b0ffc0c8d0ffffffffffffffffffffffffff ,
  179. 0xffffffff708890ff00000000e0987050e09870ffd07040ff0000000000000000 ,
  180. 0x000000000000000090a0b0ff90a0b0ff90a0b0ff90a0b0ff90a0a0ff8098a0ff ,
  181. 0x8098a0ff9098a0ff0000000000000000e0987050e09870ff0000000000000000 ,
  182. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  183. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  184. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  185. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  186. 0x0000000000000000
  187. End
  188. LayoutCachedLeft =113
  189. LayoutCachedTop =56
  190. LayoutCachedWidth =629
  191. LayoutCachedHeight =452
  192. Gradient =0
  193. BackColor =15921906
  194. BackThemeColorIndex =1
  195. BackTint =100.0
  196. BackShade =95.0
  197. BorderColor =14136213
  198. HoverColor =15060409
  199. PressedColor =9592887
  200. HoverForeColor =4210752
  201. PressedForeColor =4210752
  202. WebImagePaddingLeft =2
  203. WebImagePaddingTop =2
  204. WebImagePaddingRight =1
  205. WebImagePaddingBottom =1
  206. End
  207. Begin TextBox
  208. OldBorderStyle =0
  209. OverlapFlags =215
  210. BackStyle =0
  211. IMESentenceMode =3
  212. Left =3345
  213. Top =56
  214. Width =3576
  215. Height =390
  216. ColumnWidth =2790
  217. ColumnOrder =1
  218. FontSize =13
  219. FontWeight =700
  220. TabIndex =1
  221. BorderColor =10921638
  222. Name ="NomBareme"
  223. ControlSource ="NomBareme"
  224. GridlineColor =10921638
  225. LayoutCachedLeft =3345
  226. LayoutCachedTop =56
  227. LayoutCachedWidth =6921
  228. LayoutCachedHeight =446
  229. ForeTint =100.0
  230. End
  231. Begin TextBox
  232. OldBorderStyle =0
  233. OverlapFlags =215
  234. BackStyle =0
  235. IMESentenceMode =3
  236. Left =4251
  237. Top =510
  238. Height =315
  239. ColumnOrder =2
  240. TabIndex =2
  241. BorderColor =10921638
  242. Name ="DateInf"
  243. GridlineColor =10921638
  244. LayoutCachedLeft =4251
  245. LayoutCachedTop =510
  246. LayoutCachedWidth =5952
  247. LayoutCachedHeight =825
  248. ForeTint =100.0
  249. Begin
  250. Begin Label
  251. FontItalic = NotDefault
  252. OverlapFlags =93
  253. Left =1530
  254. Top =510
  255. Width =2820
  256. Height =315
  257. BorderColor =8355711
  258. Name ="Étiquette4"
  259. Caption ="En cours de validité depuis le "
  260. GridlineColor =10921638
  261. LayoutCachedLeft =1530
  262. LayoutCachedTop =510
  263. LayoutCachedWidth =4350
  264. LayoutCachedHeight =825
  265. ForeTint =100.0
  266. End
  267. End
  268. End
  269. Begin TextBox
  270. OverlapFlags =85
  271. IMESentenceMode =3
  272. Left =6689
  273. Top =510
  274. Width =411
  275. Height =315
  276. ColumnOrder =0
  277. TabIndex =3
  278. BorderColor =10921638
  279. ForeColor =4210752
  280. Name ="PeriodeValidite"
  281. ControlSource ="PeriodeValidite"
  282. StatusBarText ="cf. tbl_PeriodeBareme"
  283. GridlineColor =10921638
  284. LayoutCachedLeft =6689
  285. LayoutCachedTop =510
  286. LayoutCachedWidth =7100
  287. LayoutCachedHeight =825
  288. End
  289. Begin CommandButton
  290. OverlapFlags =85
  291. Left =7143
  292. Top =510
  293. Width =1984
  294. Height =340
  295. TabIndex =4
  296. ForeColor =4210752
  297. Name ="Commande9"
  298. Caption ="Créer un nouveau barème"
  299. GridlineColor =10921638
  300. LayoutCachedLeft =7143
  301. LayoutCachedTop =510
  302. LayoutCachedWidth =9127
  303. LayoutCachedHeight =850
  304. Gradient =0
  305. BackColor =15921906
  306. BackThemeColorIndex =1
  307. BackTint =100.0
  308. BackShade =95.0
  309. BorderColor =14136213
  310. HoverColor =15060409
  311. PressedColor =9592887
  312. HoverForeColor =4210752
  313. PressedForeColor =4210752
  314. WebImagePaddingLeft =2
  315. WebImagePaddingTop =2
  316. WebImagePaddingRight =1
  317. WebImagePaddingBottom =1
  318. End
  319. End
  320. End
  321. Begin Section
  322. CanGrow = NotDefault
  323. CanShrink = NotDefault
  324. Height =340
  325. BackColor =14211288
  326. Name ="Détail"
  327. AutoHeight =255
  328. AlternateBackColor =15921906
  329. AlternateBackThemeColorIndex =1
  330. AlternateBackShade =95.0
  331. Begin
  332. Begin TextBox
  333. OverlapFlags =93
  334. TextAlign =2
  335. BackStyle =0
  336. IMESentenceMode =3
  337. Left =961
  338. Width =1416
  339. Height =315
  340. BorderColor =10921638
  341. Name ="BorneInf"
  342. ControlSource ="BorneInf"
  343. GridlineColor =10921638
  344. LayoutCachedLeft =961
  345. LayoutCachedWidth =2377
  346. LayoutCachedHeight =315
  347. ForeTint =100.0
  348. End
  349. Begin TextBox
  350. OverlapFlags =85
  351. TextAlign =2
  352. BackStyle =0
  353. IMESentenceMode =3
  354. Left =2775
  355. Width =1476
  356. Height =315
  357. TabIndex =1
  358. BorderColor =10921638
  359. Name ="BorneSup"
  360. ControlSource ="BorneSup"
  361. GridlineColor =10921638
  362. LayoutCachedLeft =2775
  363. LayoutCachedWidth =4251
  364. LayoutCachedHeight =315
  365. ForeTint =100.0
  366. End
  367. Begin TextBox
  368. OverlapFlags =85
  369. BackStyle =0
  370. IMESentenceMode =3
  371. Left =4362
  372. Width =801
  373. Height =315
  374. TabIndex =2
  375. BorderColor =10921638
  376. Name ="UniteBornes"
  377. ControlSource ="UniteBornes"
  378. GridlineColor =10921638
  379. LayoutCachedLeft =4362
  380. LayoutCachedWidth =5163
  381. LayoutCachedHeight =315
  382. ForeTint =100.0
  383. End
  384. Begin TextBox
  385. OverlapFlags =85
  386. BackStyle =0
  387. IMESentenceMode =3
  388. Left =6172
  389. Width =1656
  390. Height =315
  391. TabIndex =3
  392. BorderColor =10921638
  393. Name ="Valeur"
  394. ControlSource ="Valeur"
  395. GridlineColor =10921638
  396. LayoutCachedLeft =6172
  397. LayoutCachedWidth =7828
  398. LayoutCachedHeight =315
  399. ForeTint =100.0
  400. End
  401. Begin TextBox
  402. OverlapFlags =85
  403. BackStyle =0
  404. IMESentenceMode =3
  405. Left =7877
  406. Width =621
  407. Height =315
  408. TabIndex =4
  409. BorderColor =10921638
  410. Name ="UniteValeur"
  411. ControlSource ="UniteValeur"
  412. GridlineColor =10921638
  413. LayoutCachedLeft =7877
  414. LayoutCachedWidth =8498
  415. LayoutCachedHeight =315
  416. ForeTint =100.0
  417. End
  418. Begin Label
  419. OverlapFlags =85
  420. Left =2435
  421. Width =227
  422. Height =284
  423. FontWeight =700
  424. BorderColor =8355711
  425. Name ="Étiquette12"
  426. Caption ="à"
  427. GridlineColor =10921638
  428. LayoutCachedLeft =2435
  429. LayoutCachedWidth =2662
  430. LayoutCachedHeight =284
  431. ForeTint =100.0
  432. End
  433. Begin Label
  434. OverlapFlags =247
  435. Left =623
  436. Top =4
  437. Width =390
  438. Height =285
  439. FontWeight =700
  440. BorderColor =8355711
  441. Name ="Étiquette13"
  442. Caption ="De:"
  443. GridlineColor =10921638
  444. LayoutCachedLeft =623
  445. LayoutCachedTop =4
  446. LayoutCachedWidth =1013
  447. LayoutCachedHeight =289
  448. ForeTint =100.0
  449. End
  450. Begin Label
  451. OverlapFlags =85
  452. Left =5383
  453. Width =567
  454. Height =284
  455. FontWeight =700
  456. BorderColor =8355711
  457. Name ="Étiquette14"
  458. Caption ="->"
  459. GridlineColor =10921638
  460. LayoutCachedLeft =5383
  461. LayoutCachedWidth =5950
  462. LayoutCachedHeight =284
  463. ForeTint =100.0
  464. End
  465. End
  466. End
  467. Begin FormFooter
  468. Height =623
  469. BackColor =10855845
  470. Name ="PiedFormulaire"
  471. AlternateBackThemeColorIndex =1
  472. AlternateBackShade =95.0
  473. Begin
  474. Begin CommandButton
  475. OverlapFlags =85
  476. Left =7143
  477. Top =170
  478. Width =1984
  479. Height =340
  480. ForeColor =4210752
  481. Name ="Commande5"
  482. Caption ="Enregistrer"
  483. GridlineColor =10921638
  484. LayoutCachedLeft =7143
  485. LayoutCachedTop =170
  486. LayoutCachedWidth =9127
  487. LayoutCachedHeight =510
  488. Gradient =0
  489. BackColor =15921906
  490. BackThemeColorIndex =1
  491. BackTint =100.0
  492. BackShade =95.0
  493. BorderColor =14136213
  494. HoverColor =15060409
  495. PressedColor =9592887
  496. HoverForeColor =4210752
  497. PressedForeColor =4210752
  498. WebImagePaddingLeft =2
  499. WebImagePaddingTop =2
  500. WebImagePaddingRight =1
  501. WebImagePaddingBottom =1
  502. End
  503. Begin Label
  504. OverlapFlags =85
  505. Left =60
  506. Top =165
  507. Width =3990
  508. Height =285
  509. BorderColor =8355711
  510. Name ="Étiquette6"
  511. Caption ="Ce barême sera pris en compte à partir du:"
  512. GridlineColor =10921638
  513. LayoutCachedLeft =60
  514. LayoutCachedTop =165
  515. LayoutCachedWidth =4050
  516. LayoutCachedHeight =450
  517. ForeTint =100.0
  518. End
  519. End
  520. End
  521. End
  522. End
  523. CodeBehindForm
  524. Attribute VB_GlobalNameSpace = False
  525. Attribute VB_Creatable = True
  526. Attribute VB_PredeclaredId = True
  527. Attribute VB_Exposed = False
  528. Option Compare Database
  529. Private Sub Form_Current()
  530. Dim NomBareme As String
  531. Dim periode As Integer
  532. Dim rs As DAO.Recordset
  533. NomBareme = Me.NomBareme
  534. periode = Me.PeriodeValidite
  535. End Sub