frm_ParamUtil.bas 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  1. Version =20
  2. VersionRequired =20
  3. Begin Form
  4. DividingLines = NotDefault
  5. AllowDesignChanges = NotDefault
  6. PictureAlignment =2
  7. DatasheetGridlinesBehavior =3
  8. GridY =10
  9. Width =20807
  10. DatasheetFontHeight =11
  11. ItemSuffix =8
  12. Right =13590
  13. Bottom =12345
  14. DatasheetGridlinesColor =14806254
  15. Filter ="[user]='olivier'"
  16. RecSrcDt = Begin
  17. 0xb6942d1f1538e440
  18. End
  19. RecordSource ="SELECT tbl_ParamUtil.Parametre, tbl_ParamUtil.Valeur, tbl_ParamUtil.Valeur2, tbl"
  20. "_ParamUtil.Description, tbl_ParamUtil.User FROM tbl_ParamUtil ORDER BY tbl_Param"
  21. "Util.User; "
  22. OnCurrent ="[Event Procedure]"
  23. DatasheetFontName ="Calibri"
  24. FilterOnLoad =0
  25. ShowPageMargins =0
  26. DisplayOnSharePointSite =1
  27. DatasheetAlternateBackColor =15921906
  28. DatasheetGridlinesColor12 =0
  29. FitToScreen =1
  30. DatasheetBackThemeColorIndex =1
  31. BorderThemeColorIndex =3
  32. ThemeFontIndex =1
  33. ForeThemeColorIndex =0
  34. AlternateBackThemeColorIndex =1
  35. AlternateBackShade =95.0
  36. Begin
  37. Begin Label
  38. BackStyle =0
  39. FontSize =11
  40. FontName ="Calibri"
  41. ThemeFontIndex =1
  42. BackThemeColorIndex =1
  43. BorderThemeColorIndex =0
  44. BorderTint =50.0
  45. ForeThemeColorIndex =0
  46. ForeTint =50.0
  47. GridlineThemeColorIndex =1
  48. GridlineShade =65.0
  49. End
  50. Begin CommandButton
  51. Width =1701
  52. Height =283
  53. FontSize =11
  54. FontWeight =400
  55. FontName ="Calibri"
  56. ForeThemeColorIndex =0
  57. ForeTint =75.0
  58. GridlineThemeColorIndex =1
  59. GridlineShade =65.0
  60. UseTheme =1
  61. Shape =1
  62. Gradient =12
  63. BackThemeColorIndex =4
  64. BackTint =60.0
  65. BorderLineStyle =0
  66. BorderColor =16777215
  67. BorderThemeColorIndex =4
  68. BorderTint =60.0
  69. ThemeFontIndex =1
  70. HoverThemeColorIndex =4
  71. HoverTint =40.0
  72. PressedThemeColorIndex =4
  73. PressedShade =75.0
  74. HoverForeThemeColorIndex =0
  75. HoverForeTint =75.0
  76. PressedForeThemeColorIndex =0
  77. PressedForeTint =75.0
  78. End
  79. Begin TextBox
  80. AddColon = NotDefault
  81. FELineBreak = NotDefault
  82. BorderLineStyle =0
  83. Width =1701
  84. LabelX =-1701
  85. FontSize =11
  86. FontName ="Calibri"
  87. AsianLineBreak =1
  88. BackThemeColorIndex =1
  89. BorderThemeColorIndex =1
  90. BorderShade =65.0
  91. ThemeFontIndex =1
  92. ForeThemeColorIndex =0
  93. ForeTint =75.0
  94. GridlineThemeColorIndex =1
  95. GridlineShade =65.0
  96. End
  97. Begin FormHeader
  98. Height =1057
  99. BackColor =14211288
  100. Name ="EntêteFormulaire"
  101. AlternateBackThemeColorIndex =1
  102. AlternateBackShade =95.0
  103. Begin
  104. Begin Label
  105. OverlapFlags =93
  106. Left =623
  107. Top =56
  108. Width =3402
  109. Height =397
  110. FontSize =13
  111. BorderColor =8355711
  112. Name ="Étiquette0"
  113. Caption ="Gestion des Paramètres"
  114. GridlineColor =10921638
  115. LayoutCachedLeft =623
  116. LayoutCachedTop =56
  117. LayoutCachedWidth =4025
  118. LayoutCachedHeight =453
  119. ForeTint =100.0
  120. End
  121. Begin CommandButton
  122. OverlapFlags =85
  123. Left =56
  124. Top =56
  125. Width =516
  126. Height =351
  127. ForeColor =4210752
  128. Name ="Commande1"
  129. Caption ="Commande1"
  130. ControlTipText ="Fermer formulaire"
  131. GridlineColor =10921638
  132. OnClickEmMacro = Begin
  133. Version =196611
  134. ColumnsShown =8
  135. Begin
  136. Action ="Close"
  137. Argument ="-1"
  138. Argument =""
  139. Argument ="0"
  140. End
  141. Begin
  142. Comment ="_AXL:<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"no\"?>\015\012<UserI"
  143. "nterfaceMacro For=\"Commande1\" xmlns=\"http://schemas.microsoft.com/office/acce"
  144. "ssservices/2009/11/application\" xmlns:a=\"http://schemas.microsoft.com/office/a"
  145. "ccessservices/2009/11/forms\"><"
  146. End
  147. Begin
  148. Comment ="_AXL:Statements><Action Name=\"CloseWindow\"/></Statements></UserInterfaceMacro>"
  149. End
  150. End
  151. ImageData = Begin
  152. 0x2800000010000000100000000100200000000000000000000000000000000000 ,
  153. 0x0000000000000000000000000000000000000000000000000000000010081080 ,
  154. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  155. 0x000000000000000000000000000000000000000040485020100810e0104050ff ,
  156. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  157. 0x0000000000000000000000000000000040404080405860ff106890ff2080a0f0 ,
  158. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  159. 0x0000000000000000607070ff80a0b0ff4080a0ff20a0d0ff40a8e0ff2078a0ff ,
  160. 0x101020ff101020ff000000000000000000000000000000000000000000000000 ,
  161. 0x0000000000000000708890ffa0d8f0ff60d0ffff50c0f0ff30a8e0ff1080b0ff ,
  162. 0xe0d8d0ff102020ff000000000000000000000000000000000000000000000000 ,
  163. 0x0000000000000000708890ffb0e8f0ff80e0ffff60c8f0ff50b8f0ff1088c0ff ,
  164. 0xf0d8d0ff202830ff000000000000000090482030904820ff0000000000000000 ,
  165. 0x0000000000000000808890ffb0e8f0ff80e0ffff60d0ffff404050ff1090c0ff ,
  166. 0xf0e0d0ff303840ff0000000090482030a05030ffa05020ff0000000000000000 ,
  167. 0x00000000000000008090a0ffc0f0ffff90e0ffff70d8ffff60c8f0ff0090c0ff ,
  168. 0xf0e0e0ff404050ff90482030a05030ffd07840ffb05830ffa05020ffa04820ff ,
  169. 0x904820ff904820ff8090a0ffc0f0ffffa0e8ffff80d8ffff70d0f0ff40b0e0ff ,
  170. 0xf0e8e0ff605050ffa05830ffe08860fff09060fff08850ffe07850ffd07040ff ,
  171. 0xb06840ff904820ff8098a0ffc0f0ffffa0e8ffff90e8ffff80e0ffff80b8d0ff ,
  172. 0xf0e8e0ffe09870ffffc0a0ffffb090ffffa070fff09060fff08850ffe07850ff ,
  173. 0xd07040ffa05020ff8098a0ffc0f0ffffc0f8ffffa0e0f0ff90a8b0ffc0c8d0ff ,
  174. 0xf0f0e0ff908080fff0a070ffffc0a0ffffb090ffffb090ffffa880fff0a080ff ,
  175. 0xe09870ffb05030ff90a0a0ffe0f8ffffb0c8d0ff90a0b0fff0f0f0fffff8f0ff ,
  176. 0xf0f0f0ff607080ffe0987050f0a070ffffc0a0ffd06830ffe09870ffe09060ff ,
  177. 0xe08860ffe08050ff90a0b0ff90a8b0ffc0c8d0ffffffffffffffffffffffffff ,
  178. 0xffffffff708890ff00000000e0987050e09870ffd07040ff0000000000000000 ,
  179. 0x000000000000000090a0b0ff90a0b0ff90a0b0ff90a0b0ff90a0a0ff8098a0ff ,
  180. 0x8098a0ff9098a0ff0000000000000000e0987050e09870ff0000000000000000 ,
  181. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  182. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  183. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  184. 0x0000000000000000000000000000000000000000000000000000000000000000 ,
  185. 0x0000000000000000
  186. End
  187. LayoutCachedLeft =56
  188. LayoutCachedTop =56
  189. LayoutCachedWidth =572
  190. LayoutCachedHeight =407
  191. Gradient =0
  192. BackColor =15921906
  193. BackThemeColorIndex =1
  194. BackTint =100.0
  195. BackShade =95.0
  196. BorderColor =14136213
  197. HoverColor =15060409
  198. PressedColor =9592887
  199. HoverForeColor =4210752
  200. PressedForeColor =4210752
  201. WebImagePaddingLeft =2
  202. WebImagePaddingTop =2
  203. WebImagePaddingRight =1
  204. WebImagePaddingBottom =1
  205. End
  206. Begin Label
  207. OverlapFlags =85
  208. Left =7880
  209. Top =742
  210. Width =690
  211. Height =315
  212. BorderColor =8355711
  213. ForeColor =8355711
  214. Name ="Étiquette3"
  215. Caption ="Valeur"
  216. GridlineColor =10921638
  217. LayoutCachedLeft =7880
  218. LayoutCachedTop =742
  219. LayoutCachedWidth =8570
  220. LayoutCachedHeight =1057
  221. End
  222. Begin Label
  223. OverlapFlags =85
  224. Left =12925
  225. Top =680
  226. Width =2280
  227. Height =315
  228. BorderColor =8355711
  229. ForeColor =8355711
  230. Name ="Étiquette4"
  231. Caption ="Valeur complémentaire"
  232. GridlineColor =10921638
  233. LayoutCachedLeft =12925
  234. LayoutCachedTop =680
  235. LayoutCachedWidth =15205
  236. LayoutCachedHeight =995
  237. End
  238. Begin Label
  239. OverlapFlags =85
  240. Left =113
  241. Top =742
  242. Width =2640
  243. Height =315
  244. BorderColor =8355711
  245. ForeColor =8355711
  246. Name ="Étiquette5"
  247. Caption ="Commentaire"
  248. GridlineColor =10921638
  249. LayoutCachedLeft =113
  250. LayoutCachedTop =742
  251. LayoutCachedWidth =2753
  252. LayoutCachedHeight =1057
  253. End
  254. Begin Label
  255. OverlapFlags =85
  256. Left =5835
  257. Top =737
  258. Width =1905
  259. Height =315
  260. BorderColor =8355711
  261. ForeColor =8355711
  262. Name ="Étiquette2"
  263. Caption =" Code du paramètre"
  264. GridlineColor =10921638
  265. LayoutCachedLeft =5835
  266. LayoutCachedTop =737
  267. LayoutCachedWidth =7740
  268. LayoutCachedHeight =1052
  269. End
  270. Begin Label
  271. FontItalic = NotDefault
  272. OverlapFlags =215
  273. Left =623
  274. Top =340
  275. Width =11115
  276. Height =285
  277. BorderColor =8355711
  278. Name ="Étiquette6"
  279. Caption ="(Le cas échéant, un double clic sur la case 'valeur' ouvrira la fenêtre de sélec"
  280. "tion correspondante)"
  281. GridlineColor =10921638
  282. LayoutCachedLeft =623
  283. LayoutCachedTop =340
  284. LayoutCachedWidth =11738
  285. LayoutCachedHeight =625
  286. ForeTint =100.0
  287. End
  288. Begin Label
  289. OverlapFlags =85
  290. Left =15987
  291. Top =680
  292. Width =495
  293. Height =315
  294. BorderColor =8355711
  295. ForeColor =8355711
  296. Name ="etiq_user"
  297. Caption ="User"
  298. GridlineColor =10921638
  299. LayoutCachedLeft =15987
  300. LayoutCachedTop =680
  301. LayoutCachedWidth =16482
  302. LayoutCachedHeight =995
  303. End
  304. End
  305. End
  306. Begin Section
  307. Height =340
  308. BackColor =14211288
  309. Name ="Détail"
  310. AlternateBackColor =15921906
  311. AlternateBackThemeColorIndex =1
  312. AlternateBackShade =95.0
  313. Begin
  314. Begin TextBox
  315. OverlapFlags =85
  316. IMESentenceMode =3
  317. Left =7880
  318. Width =4986
  319. Height =315
  320. ColumnWidth =7920
  321. BorderColor =10921638
  322. ForeColor =4210752
  323. Name ="valeur"
  324. ControlSource ="valeur"
  325. OnDblClick ="[Event Procedure]"
  326. GridlineColor =10921638
  327. LayoutCachedLeft =7880
  328. LayoutCachedWidth =12866
  329. LayoutCachedHeight =315
  330. End
  331. Begin TextBox
  332. OverlapFlags =85
  333. IMESentenceMode =3
  334. Left =12925
  335. Width =3006
  336. Height =315
  337. TabIndex =1
  338. BorderColor =10921638
  339. ForeColor =4210752
  340. Name ="valeur2"
  341. ControlSource ="valeur2"
  342. GridlineColor =10921638
  343. LayoutCachedLeft =12925
  344. LayoutCachedWidth =15931
  345. LayoutCachedHeight =315
  346. End
  347. Begin TextBox
  348. EnterKeyBehavior = NotDefault
  349. ScrollBars =2
  350. OverlapFlags =85
  351. IMESentenceMode =3
  352. Left =114
  353. Width =5610
  354. Height =333
  355. ColumnWidth =7725
  356. TabIndex =2
  357. BorderColor =10921638
  358. ForeColor =4210752
  359. Name ="commentaire"
  360. ControlSource ="Description"
  361. GridlineColor =10921638
  362. LayoutCachedLeft =114
  363. LayoutCachedWidth =5724
  364. LayoutCachedHeight =333
  365. End
  366. Begin TextBox
  367. OverlapFlags =85
  368. IMESentenceMode =3
  369. Left =5839
  370. Width =1866
  371. Height =315
  372. TabIndex =3
  373. BorderColor =10921638
  374. ForeColor =4210752
  375. Name ="parametre"
  376. ControlSource ="parametre"
  377. GridlineColor =10921638
  378. LayoutCachedLeft =5839
  379. LayoutCachedWidth =7705
  380. LayoutCachedHeight =315
  381. End
  382. Begin TextBox
  383. OverlapFlags =85
  384. IMESentenceMode =3
  385. Left =15987
  386. Height =315
  387. TabIndex =4
  388. BorderColor =10921638
  389. ForeColor =4210752
  390. Name ="User"
  391. ControlSource ="User"
  392. GridlineColor =10921638
  393. LayoutCachedLeft =15987
  394. LayoutCachedWidth =17688
  395. LayoutCachedHeight =315
  396. End
  397. End
  398. End
  399. Begin FormFooter
  400. Height =453
  401. BackColor =14211288
  402. Name ="PiedFormulaire"
  403. AlternateBackThemeColorIndex =1
  404. AlternateBackShade =95.0
  405. End
  406. End
  407. End
  408. CodeBehindForm
  409. Attribute VB_GlobalNameSpace = False
  410. Attribute VB_Creatable = True
  411. Attribute VB_PredeclaredId = True
  412. Attribute VB_Exposed = False
  413. Option Compare Database
  414. Private Sub Form_Current()
  415. 'on affiche le nom de l'utilisateur seulement lorsque l'affichage n'est pas filtré par utilisateur
  416. If Me.Filter <> "" And Me.FilterOn = True Then
  417. Me.User.Visible = False
  418. Me.etiq_user.Visible = False
  419. End If
  420. End Sub
  421. Private Sub valeur_DblClick(Cancel As Integer)
  422. Dim nouv As String
  423. If Me.parametre = "imprimante" Then
  424. nouv = NomImpr()
  425. ElseIf Me.parametre = "repPDF" Then
  426. nouv = Nz(SelectFolder("Selectionnez un dossier...", Me.hwnd), "")
  427. End If
  428. If nouv = "" Then Exit Sub
  429. Me.Valeur = nouv
  430. End Sub