質問するログイン新規登録

質問編集履歴

2

誤字

2017/04/21 04:22

投稿

MP430
MP430

スコア40

title CHANGED
File without changes
body CHANGED
@@ -24,7 +24,7 @@
24
24
  ###追記
25
25
  Public Function MemoAdd()
26
26
  Dim frm As [Form_ALL注文在庫 F]
27
- Set frm = [Form_注文在庫 F]
27
+ Set frm = [Form_ALL注文在庫 F]
28
28
  Dim ctl As Control
29
29
  DoCmd.OpenForm frm.Name, acDesign
30
30
 

1

追記

2017/04/21 04:22

投稿

MP430
MP430

スコア40

title CHANGED
File without changes
body CHANGED
@@ -20,4 +20,17 @@
20
20
  ###補足情報(言語/FW/ツール等のバージョンなど)
21
21
  windows10
22
22
  Access2016
23
- VBA
23
+ VBA
24
+ ###追記
25
+ Public Function MemoAdd()
26
+ Dim frm As [Form_ALL注文在庫 F]
27
+ Set frm = [Form_注文在庫 F]
28
+ Dim ctl As Control
29
+ DoCmd.OpenForm frm.Name, acDesign
30
+
31
+ Set ctl = CreateControl(frm.Name, acLabel)
32
+ End Function
33
+ 上記コードに変更したところ
34
+ CreateControlのfrm.nameが
35
+ プロシージャの呼び出しまたは、引数が不正ですのエラーに変わりました。
36
+ set ctlの前まではコードに問題なさそうです。