将子窗体中的多个记录添加到主窗体Access 2010

时间:2015-09-01 19:28:12

标签: ms-access ms-access-2010

是否可以将从子表单中选择的多个数据添加到主表单?

Subform data to main form

2 个答案:

答案 0 :(得分:1)

Form.SelTop和.SelHeight是这里的关键属性。

使用subform.RecordsetClone循环的示例:

// in your BackstopJS config
"url": "http://localhost/vawizard/index.html#openModal",


// then as part of a jQuery script
$(document).ready(function(){
  if ( /openModal/.test(location.hash) )
    {
      // Do your open modal action here
      // Then trigger BackstopJS
    }
});

答案 1 :(得分:0)

要选择数据,最好使用listfield 然后使用表中的VB程序复制数据:

09-02 19:47:08.208: E/AndroidRuntime(21574): FATAL EXCEPTION: main
09-02 19:47:08.208: E/AndroidRuntime(21574): Process: com.example.predesignedmails, PID: 21574
09-02 19:47:08.208: E/AndroidRuntime(21574): java.lang.RuntimeException: Unable to start activity   ComponentInfo{com.example.predesignedmails/com.example.predesignedmails.LoveM    ailsActivity}: java.lang.NullPointerException: Attempt to invoke virtual     method 'void  android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null  object reference
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2305)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2367)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.app.ActivityThread.access$800(ActivityThread.java:148)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.os.Handler.dispatchMessage(Handler.java:102)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.os.Looper.loop(Looper.java:135)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.app.ActivityThread.main(ActivityThread.java:5274)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at java.lang.reflect.Method.invoke(Native Method)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at java.lang.reflect.Method.invoke(Method.java:372)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:90    09-02 19:47:08.208: E/AndroidRuntime(21574):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)
09-02 19:47:08.208: E/AndroidRuntime(21574): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
09-02 19:47:08.208: E/AndroidRuntime(21574):    at com.example.predesignedmails.LoveMailsActivity.onCreate(LoveMailsActivity.java:45)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.app.Activity.performCreate(Activity.java:5977)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
09-02 19:47:08.208: E/AndroidRuntime(21574):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)
09-02 19:47:08.208: E/AndroidRuntime(21574):    ... 10 more