zf_versions.bas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. Version =20
  2. VersionRequired =20
  3. Begin Form
  4. AllowDeletions = NotDefault
  5. DividingLines = NotDefault
  6. AllowAdditions = NotDefault
  7. AllowDesignChanges = NotDefault
  8. AllowUpdating =1
  9. PictureAlignment =2
  10. DatasheetGridlinesBehavior =3
  11. GridY =10
  12. Width =18481
  13. DatasheetFontHeight =11
  14. ItemSuffix =17
  15. Right =11265
  16. Bottom =12135
  17. DatasheetGridlinesColor =15062992
  18. RecSrcDt = Begin
  19. 0x7e84741354e5e440
  20. End
  21. RecordSource ="SELECT [zt_versions].VERSION, [zt_versions].VERSION_lb, [zt_versions].Modifie_pa"
  22. "r, [zt_versions].Valide_par, [zt_versions].Valide_le, [zt_versions].Modification"
  23. "s FROM zt_versions ORDER BY [zt_versions].VERSION DESC; "
  24. OnCurrent ="[Event Procedure]"
  25. DatasheetFontName ="Calibri"
  26. FilterOnLoad =0
  27. DatasheetBackColor12 =-2147483643
  28. ShowPageMargins =0
  29. DisplayOnSharePointSite =1
  30. DatasheetAlternateBackColor =16053492
  31. DatasheetGridlinesColor12 =15062992
  32. FitToScreen =1
  33. Begin
  34. Begin Label
  35. BackStyle =0
  36. FontSize =11
  37. FontName ="Calibri"
  38. ThemeFontIndex =1
  39. BackThemeColorIndex =1
  40. BorderThemeColorIndex =1
  41. ForeThemeColorIndex =2
  42. ForeTint =60.0
  43. GridlineThemeColorIndex =1
  44. GridlineShade =65.0
  45. End
  46. Begin CommandButton
  47. Width =1701
  48. Height =283
  49. FontSize =11
  50. FontWeight =400
  51. FontName ="Calibri"
  52. ForeThemeColorIndex =2
  53. ForeShade =50.0
  54. GridlineThemeColorIndex =1
  55. GridlineShade =65.0
  56. BackColor =-2147483633
  57. BorderLineStyle =0
  58. BorderThemeColorIndex =3
  59. BorderShade =90.0
  60. ThemeFontIndex =1
  61. End
  62. Begin TextBox
  63. FELineBreak = NotDefault
  64. BorderLineStyle =0
  65. Width =1701
  66. LabelX =-1701
  67. FontSize =11
  68. FontName ="Calibri"
  69. AsianLineBreak =1
  70. BackThemeColorIndex =1
  71. BorderThemeColorIndex =3
  72. BorderShade =90.0
  73. ThemeFontIndex =1
  74. ForeThemeColorIndex =2
  75. ForeShade =50.0
  76. GridlineThemeColorIndex =1
  77. GridlineShade =65.0
  78. End
  79. Begin ComboBox
  80. BorderLineStyle =0
  81. Width =1701
  82. LabelX =-1701
  83. FontSize =11
  84. FontName ="Calibri"
  85. AllowValueListEdits =1
  86. InheritValueList =1
  87. ThemeFontIndex =1
  88. BackThemeColorIndex =1
  89. BorderThemeColorIndex =3
  90. BorderShade =90.0
  91. ForeThemeColorIndex =2
  92. ForeShade =50.0
  93. GridlineThemeColorIndex =1
  94. GridlineShade =65.0
  95. End
  96. Begin FormHeader
  97. Height =963
  98. BackColor =12566463
  99. Name ="EntêteFormulaire"
  100. AlternateBackThemeColorIndex =1
  101. AlternateBackShade =95.0
  102. Begin
  103. Begin Label
  104. OverlapFlags =85
  105. Left =226
  106. Top =566
  107. Width =960
  108. Height =315
  109. BorderColor =16777215
  110. Name ="Étiquette0"
  111. Caption ="VERSION:"
  112. GridlineColor =10921638
  113. LayoutCachedLeft =226
  114. LayoutCachedTop =566
  115. LayoutCachedWidth =1186
  116. LayoutCachedHeight =881
  117. ForeThemeColorIndex =0
  118. ForeTint =100.0
  119. End
  120. Begin Label
  121. OverlapFlags =85
  122. Left =2380
  123. Top =623
  124. Width =1215
  125. Height =315
  126. BorderColor =16777215
  127. Name ="Étiquette2"
  128. Caption ="By:"
  129. GridlineColor =10921638
  130. LayoutCachedLeft =2380
  131. LayoutCachedTop =623
  132. LayoutCachedWidth =3595
  133. LayoutCachedHeight =938
  134. ForeThemeColorIndex =0
  135. ForeTint =100.0
  136. End
  137. Begin Label
  138. OverlapFlags =85
  139. Left =4425
  140. Top =630
  141. Width =1365
  142. Height =315
  143. BorderColor =16777215
  144. Name ="Étiquette4"
  145. Caption ="Validation:"
  146. GridlineColor =10921638
  147. LayoutCachedLeft =4425
  148. LayoutCachedTop =630
  149. LayoutCachedWidth =5790
  150. LayoutCachedHeight =945
  151. ForeThemeColorIndex =0
  152. ForeTint =100.0
  153. End
  154. Begin Label
  155. OverlapFlags =85
  156. Left =7653
  157. Top =623
  158. Width =1410
  159. Height =315
  160. BorderColor =16777215
  161. Name ="Étiquette6"
  162. Caption ="Decsription:"
  163. GridlineColor =10921638
  164. LayoutCachedLeft =7653
  165. LayoutCachedTop =623
  166. LayoutCachedWidth =9063
  167. LayoutCachedHeight =938
  168. ForeThemeColorIndex =0
  169. ForeTint =100.0
  170. End
  171. Begin Label
  172. OverlapFlags =93
  173. Left =623
  174. Top =56
  175. Width =5216
  176. Height =340
  177. FontSize =14
  178. FontWeight =700
  179. BorderColor =16777215
  180. Name ="Étiquette7"
  181. Caption ="Versions"
  182. GridlineColor =10921638
  183. LayoutCachedLeft =623
  184. LayoutCachedTop =56
  185. LayoutCachedWidth =5839
  186. LayoutCachedHeight =396
  187. ForeThemeColorIndex =0
  188. ForeTint =100.0
  189. End
  190. Begin CommandButton
  191. OverlapFlags =215
  192. Left =5499
  193. Top =56
  194. Width =1424
  195. Height =343
  196. ForeColor =4138256
  197. Name ="cmd_ajout"
  198. Caption ="New version"
  199. OnClick ="[Event Procedure]"
  200. GridlineColor =10921638
  201. LayoutCachedLeft =5499
  202. LayoutCachedTop =56
  203. LayoutCachedWidth =6923
  204. LayoutCachedHeight =399
  205. BackColor =10855845
  206. BorderColor =12835293
  207. WebImagePaddingLeft =2
  208. WebImagePaddingTop =2
  209. WebImagePaddingRight =1
  210. WebImagePaddingBottom =1
  211. Overlaps =1
  212. End
  213. Begin CommandButton
  214. OverlapFlags =215
  215. Left =3798
  216. Top =56
  217. Width =1424
  218. Height =343
  219. TabIndex =1
  220. ForeColor =4138256
  221. Name ="cmd_actu"
  222. Caption ="Refresh"
  223. OnClick ="[Event Procedure]"
  224. GridlineColor =10921638
  225. LayoutCachedLeft =3798
  226. LayoutCachedTop =56
  227. LayoutCachedWidth =5222
  228. LayoutCachedHeight =399
  229. BackColor =10855845
  230. BorderColor =12835293
  231. WebImagePaddingLeft =2
  232. WebImagePaddingTop =2
  233. WebImagePaddingRight =1
  234. WebImagePaddingBottom =1
  235. Overlaps =1
  236. End
  237. Begin CommandButton
  238. OverlapFlags =85
  239. Left =56
  240. Top =56
  241. Width =501
  242. Height =336
  243. TabIndex =2
  244. ForeColor =4210752
  245. Name ="Commande1"
  246. Caption ="Commande1"
  247. ControlTipText ="Fermer formulaire"
  248. GridlineColor =10921638
  249. OnClickEmMacro = Begin
  250. Version =196611
  251. ColumnsShown =8
  252. Begin
  253. Action ="Close"
  254. Argument ="-1"
  255. Argument =""
  256. Argument ="0"
  257. End
  258. Begin
  259. Comment ="_AXL:<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"no\"?>\015\012<UserI"
  260. "nterfaceMacro For=\"Commande1\" xmlns=\"http://schemas.microsoft.com/office/acce"
  261. "ssservices/2009/11/application\" xmlns:a=\"http://schemas.microsoft.com/office/a"
  262. "ccessservices/2009/11/forms\"><"
  263. End
  264. Begin
  265. Comment ="_AXL:Statements><Action Name=\"CloseWindow\"/></Statements></UserInterfaceMacro>"
  266. End
  267. End
  268. ImageData = Begin
  269. 0x2800000010000000100000000100200000000000000000000000000000000000 ,
  270. 0x0000000000000000000000000000000000000000000000000000000010081080 ,
  271. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  272. 0x000000000000000000000000000000000000000040485020100810e0104050ff ,
  273. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  274. 0x0000000000000000000000000000000040404080405860ff106890ff2080a0f0 ,
  275. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  276. 0x0000000000000000607070ff80a0b0ff4080a0ff20a0d0ff40a8e0ff2078a0ff ,
  277. 0x101020ff101020ff000000000000000000000000000000000000000000000000 ,
  278. 0x0000000000000000708890ffa0d8f0ff60d0ffff50c0f0ff30a8e0ff1080b0ff ,
  279. 0xe0d8d0ff102020ff000000000000000000000000000000000000000000000000 ,
  280. 0x0000000000000000708890ffb0e8f0ff80e0ffff60c8f0ff50b8f0ff1088c0ff ,
  281. 0xf0d8d0ff202830ff000000000000000090482030904820ff0000000000000000 ,
  282. 0x0000000000000000808890ffb0e8f0ff80e0ffff60d0ffff404050ff1090c0ff ,
  283. 0xf0e0d0ff303840ff0000000090482030a05030ffa05020ff0000000000000000 ,
  284. 0x00000000000000008090a0ffc0f0ffff90e0ffff70d8ffff60c8f0ff0090c0ff ,
  285. 0xf0e0e0ff404050ff90482030a05030ffd07840ffb05830ffa05020ffa04820ff ,
  286. 0x904820ff904820ff8090a0ffc0f0ffffa0e8ffff80d8ffff70d0f0ff40b0e0ff ,
  287. 0xf0e8e0ff605050ffa05830ffe08860fff09060fff08850ffe07850ffd07040ff ,
  288. 0xb06840ff904820ff8098a0ffc0f0ffffa0e8ffff90e8ffff80e0ffff80b8d0ff ,
  289. 0xf0e8e0ffe09870ffffc0a0ffffb090ffffa070fff09060fff08850ffe07850ff ,
  290. 0xd07040ffa05020ff8098a0ffc0f0ffffc0f8ffffa0e0f0ff90a8b0ffc0c8d0ff ,
  291. 0xf0f0e0ff908080fff0a070ffffc0a0ffffb090ffffb090ffffa880fff0a080ff ,
  292. 0xe09870ffb05030ff90a0a0ffe0f8ffffb0c8d0ff90a0b0fff0f0f0fffff8f0ff ,
  293. 0xf0f0f0ff607080ffe0987050f0a070ffffc0a0ffd06830ffe09870ffe09060ff ,
  294. 0xe08860ffe08050ff90a0b0ff90a8b0ffc0c8d0ffffffffffffffffffffffffff ,
  295. 0xffffffff708890ff00000000e0987050e09870ffd07040ff0000000000000000 ,
  296. 0x000000000000000090a0b0ff90a0b0ff90a0b0ff90a0b0ff90a0a0ff8098a0ff ,
  297. 0x8098a0ff9098a0ff0000000000000000e0987050e09870ff0000000000000000 ,
  298. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  299. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  300. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  301. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  302. 0x0000000000000000
  303. End
  304. LayoutCachedLeft =56
  305. LayoutCachedTop =56
  306. LayoutCachedWidth =557
  307. LayoutCachedHeight =392
  308. ForeThemeColorIndex =0
  309. ForeTint =75.0
  310. ForeShade =100.0
  311. UseTheme =1
  312. Shape =1
  313. BackColor =16183539
  314. BorderColor =12029087
  315. BorderThemeColorIndex =-1
  316. BorderShade =100.0
  317. HoverColor =15060409
  318. HoverThemeColorIndex =4
  319. HoverTint =40.0
  320. PressedColor =9592887
  321. PressedThemeColorIndex =4
  322. PressedShade =75.0
  323. HoverForeColor =4210752
  324. HoverForeThemeColorIndex =0
  325. HoverForeTint =75.0
  326. PressedForeColor =4210752
  327. PressedForeThemeColorIndex =0
  328. PressedForeTint =75.0
  329. WebImagePaddingLeft =2
  330. WebImagePaddingTop =2
  331. WebImagePaddingRight =1
  332. WebImagePaddingBottom =1
  333. End
  334. End
  335. End
  336. Begin Section
  337. Height =510
  338. BackColor =15527148
  339. Name ="Détail"
  340. AlternateBackColor =12566463
  341. Begin
  342. Begin TextBox
  343. BorderWidth =2
  344. OverlapFlags =85
  345. IMESentenceMode =3
  346. Left =226
  347. Top =56
  348. Width =1266
  349. Height =315
  350. BorderColor =12835293
  351. ForeColor =4138256
  352. Name ="VERSION"
  353. ControlSource ="VERSION"
  354. Format ="Short Date"
  355. StatusBarText ="Date de la version (JJ/MM/AAAA)"
  356. AfterUpdate ="[Event Procedure]"
  357. GridlineColor =10921638
  358. LayoutCachedLeft =226
  359. LayoutCachedTop =56
  360. LayoutCachedWidth =1492
  361. LayoutCachedHeight =371
  362. End
  363. Begin TextBox
  364. BorderWidth =2
  365. OverlapFlags =85
  366. IMESentenceMode =3
  367. Left =1587
  368. Top =56
  369. Width =681
  370. Height =315
  371. TabIndex =5
  372. BorderColor =12835293
  373. ForeColor =4138256
  374. Name ="VERSION_lb"
  375. ControlSource ="VERSION_lb"
  376. StatusBarText ="Libellé de la version"
  377. AfterUpdate ="[Event Procedure]"
  378. GridlineColor =10921638
  379. LayoutCachedLeft =1587
  380. LayoutCachedTop =56
  381. LayoutCachedWidth =2268
  382. LayoutCachedHeight =371
  383. End
  384. Begin TextBox
  385. BorderWidth =2
  386. OverlapFlags =85
  387. IMESentenceMode =3
  388. Left =2437
  389. Top =56
  390. Height =315
  391. TabIndex =1
  392. BorderColor =12835293
  393. ForeColor =4138256
  394. Name ="Modifie_par"
  395. ControlSource ="Modifie_par"
  396. GridlineColor =10921638
  397. LayoutCachedLeft =2437
  398. LayoutCachedTop =56
  399. LayoutCachedWidth =4138
  400. LayoutCachedHeight =371
  401. End
  402. Begin TextBox
  403. BorderWidth =2
  404. OverlapFlags =85
  405. IMESentenceMode =3
  406. Left =4478
  407. Top =56
  408. Height =315
  409. TabIndex =2
  410. BorderColor =12835293
  411. ForeColor =4138256
  412. Name ="Valide_par"
  413. ControlSource ="Valide_par"
  414. GridlineColor =10921638
  415. LayoutCachedLeft =4478
  416. LayoutCachedTop =56
  417. LayoutCachedWidth =6179
  418. LayoutCachedHeight =371
  419. End
  420. Begin TextBox
  421. BorderWidth =2
  422. OverlapFlags =85
  423. IMESentenceMode =3
  424. Left =6235
  425. Top =56
  426. Width =1251
  427. Height =315
  428. TabIndex =3
  429. BorderColor =12835293
  430. ForeColor =4138256
  431. Name ="Valide_le"
  432. ControlSource ="Valide_le"
  433. Format ="Short Date"
  434. GridlineColor =10921638
  435. LayoutCachedLeft =6235
  436. LayoutCachedTop =56
  437. LayoutCachedWidth =7486
  438. LayoutCachedHeight =371
  439. End
  440. Begin TextBox
  441. EnterKeyBehavior = NotDefault
  442. ScrollBars =2
  443. BorderWidth =2
  444. OverlapFlags =85
  445. IMESentenceMode =3
  446. Left =7710
  447. Top =56
  448. Width =7485
  449. Height =333
  450. ColumnWidth =7215
  451. TabIndex =4
  452. BorderColor =12835293
  453. ForeColor =4138256
  454. Name ="Modifications"
  455. ControlSource ="Modifications"
  456. StatusBarText ="Modifications apportées par la nouvelle version"
  457. GridlineColor =10921638
  458. LayoutCachedLeft =7710
  459. LayoutCachedTop =56
  460. LayoutCachedWidth =15195
  461. LayoutCachedHeight =389
  462. End
  463. Begin CommandButton
  464. OverlapFlags =85
  465. Left =15363
  466. Top =56
  467. Width =1134
  468. Height =340
  469. TabIndex =6
  470. ForeColor =4138256
  471. Name ="cmd_valider"
  472. Caption ="Valider"
  473. OnClick ="[Event Procedure]"
  474. GridlineColor =10921638
  475. LayoutCachedLeft =15363
  476. LayoutCachedTop =56
  477. LayoutCachedWidth =16497
  478. LayoutCachedHeight =396
  479. BackColor =10855845
  480. BorderColor =16777215
  481. BorderThemeColorIndex =-1
  482. BorderShade =100.0
  483. WebImagePaddingLeft =2
  484. WebImagePaddingTop =2
  485. WebImagePaddingRight =1
  486. WebImagePaddingBottom =1
  487. End
  488. Begin CommandButton
  489. OverlapFlags =85
  490. Left =16781
  491. Top =56
  492. Width =1314
  493. Height =340
  494. TabIndex =7
  495. ForeColor =4138256
  496. Name ="cmd_suppr"
  497. Caption ="Supprimer"
  498. OnClick ="[Event Procedure]"
  499. GridlineColor =10921638
  500. LayoutCachedLeft =16781
  501. LayoutCachedTop =56
  502. LayoutCachedWidth =18095
  503. LayoutCachedHeight =396
  504. BackColor =10855845
  505. BorderColor =16777215
  506. BorderThemeColorIndex =-1
  507. BorderShade =100.0
  508. WebImagePaddingLeft =2
  509. WebImagePaddingTop =2
  510. WebImagePaddingRight =1
  511. WebImagePaddingBottom =1
  512. End
  513. End
  514. End
  515. Begin FormFooter
  516. Height =0
  517. BackColor =10855845
  518. Name ="PiedFormulaire"
  519. AlternateBackThemeColorIndex =1
  520. AlternateBackShade =95.0
  521. End
  522. End
  523. End
  524. CodeBehindForm
  525. Attribute VB_GlobalNameSpace = False
  526. Attribute VB_Creatable = True
  527. Attribute VB_PredeclaredId = True
  528. Attribute VB_Exposed = False
  529. Option Compare Database
  530. Option Explicit
  531. Private Sub cmd_actu_Click()
  532. Me.Requery
  533. Me.Refresh
  534. End Sub
  535. Private Sub cmd_suppr_Click()
  536. Dim rs As DAO.Recordset
  537. Me.AllowDeletions = True
  538. Me.Refresh
  539. DoCmd.RunCommand acCmdDeleteRecord
  540. Me.AllowDeletions = False
  541. Call MAJ_Local(DLast("[VERSION_lb]", "ztblVersion", ""), DLast("[VERSION]", "ztblVersion", ""))
  542. Me.Refresh
  543. End Sub
  544. Private Sub cmd_valider_Click()
  545. Me.Valide_le = Date
  546. Me.Valide_par = Environ("USERNAME")
  547. Me.Refresh
  548. End Sub
  549. Private Sub cmd_ajout_Click()
  550. Dim rs As DAO.Recordset
  551. Set rs = CurrentDb.OpenRecordset("ztblVersion")
  552. rs.AddNew
  553. rs![VERSION] = Now()
  554. rs![VERSION_lb] = DLast("[VERSION_lb]", "ztblVersion", "")
  555. rs![Modifie_par] = Environ("USERNAME")
  556. rs![Modifications] = Nz(InputBox("Modifications apportées:"), "")
  557. rs.Update
  558. rs.Close
  559. Set rs = Nothing
  560. Call MAJ_Local(Nz(DLast("[VERSION_lb]", "ztblVersion", ""), ""), Date)
  561. Me.Requery
  562. Me.Refresh
  563. End Sub
  564. Private Sub Commande14_Click()
  565. On Error GoTo Err_Commande14_Click
  566. If Me.Dirty Then Me.Dirty = False
  567. DoCmd.Close
  568. Exit_Commande14_Click:
  569. Exit Sub
  570. Err_Commande14_Click:
  571. MsgBox err.Description
  572. Resume Exit_Commande14_Click
  573. End Sub
  574. Private Sub Form_Current()
  575. If estAdmin() = False Then
  576. Me.cmd_ajout.Visible = False
  577. Me.cmd_suppr.Visible = False
  578. Me.cmd_valider.Visible = False
  579. Me.VERSION.Locked = True
  580. Me.VERSION_lb.Locked = True
  581. Me.Modifie_par.Locked = True
  582. Me.Valide_le.Locked = True
  583. Me.Valide_par.Locked = True
  584. Me.Modifications.Locked = True
  585. End If
  586. End Sub
  587. Private Sub VERSION_AfterUpdate()
  588. Me.Requery
  589. Call MAJ_Local("", Me.VERSION)
  590. End Sub
  591. Private Sub VERSION_lb_AfterUpdate()
  592. Me.Requery
  593. Call MAJ_Local(Me.VERSION_lb)
  594. End Sub
  595. Sub MAJ_Local(VERSION_lb As String, Optional VERSION As String)
  596. Dim rs As DAO.Recordset
  597. Dim k1, k2 As Integer
  598. k1 = 0
  599. k2 = 0
  600. If Not Len(VERSION_lb) > 0 Then k2 = 1
  601. If Not Len(VERSION) > 0 Then k1 = 1
  602. If k1 = 1 And k2 = 1 Then Exit Sub
  603. If MsgBox("Mettre à jour la table tbl_parametre (local)?", vbYesNo) = vbNo Then Exit Sub
  604. 'mise à jour des champs s'il existent
  605. Set rs = CurrentDb.OpenRecordset("tbl_parametre")
  606. rs.MoveFirst
  607. Do Until rs.EOF = True
  608. If k1 = 0 And rs![Parametre] = "VERSION" Then
  609. rs.Edit
  610. rs![valeur] = VERSION
  611. rs.Update
  612. k1 = 1
  613. End If
  614. If k2 = 0 And rs![Parametre] = "VERSION_lb" Then
  615. rs.Edit
  616. rs![valeur] = VERSION_lb
  617. rs.Update
  618. k2 = 1
  619. End If
  620. rs.MoveNext
  621. Loop
  622. 'création s'ils sont manquants
  623. If k1 = 0 Then
  624. rs.AddNew
  625. rs![Parametre] = "VERSION"
  626. rs![valeur] = VERSION
  627. rs.Update
  628. End If
  629. If k2 = 0 Then
  630. rs.AddNew
  631. rs![Parametre] = "VERSION_lb"
  632. rs![valeur] = VERSION_lb
  633. rs.Update
  634. End If
  635. rs.Close
  636. End Sub