Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Integration of two scripts.

    I have two scripts that work,

    FIRST SCRIPT:
    Is on a form (FORM1) with just a listbox. It will look in a location for all files and then list them inside the listbox on the open event of the form.

    SECOND SCRIPT:
    Looks for bookmarks within a template document and inserts fields. This is located on a continuous list form (FORM2) and it inserts the fields for the assiated record to were the button is clicked.

    What I want:
    On the continuous list form when the button is pressed I want it to open the form with the listbox to select which template to use. Right now its only one template and it's defined in the code.

    Maybe ive been doing too much VBA today so i cant think properly, I just cant get this working inside my head (once I have the idea im sure ill be able to figure it out for myself.)


    One way I could do it, when I click the command button on form one that I want to select I could have it open FORM 2 (with the listbox of templates) with the record information on this new form also.

    It seems a messy way of doing it.



    Maybe, refer to form 1 in the code after the template is selected... I'd be worried about an accidental focus change by the user on form one.


    Note: It's a theory question and I want to know how I should approach such a problem.

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Most times i get half way through writing a post nd figure it out. This time i took a little longer haha.

    Ill open that record on the new form showing all information needed. (or at least the ID to get other data.)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to enable export to dbf through VBA scripts
    By markvoltz in forum Import/Export Data
    Replies: 2
    Last Post: 07-16-2016, 11:02 PM
  2. Generate Scripts equivalent for MS-Access
    By xfp39024 in forum Access
    Replies: 1
    Last Post: 07-13-2013, 04:31 PM
  3. Replies: 2
    Last Post: 02-13-2013, 04:09 PM
  4. Creating tables from scripts
    By accesscoder in forum Import/Export Data
    Replies: 6
    Last Post: 10-18-2010, 04:42 PM
  5. Database scripts
    By dvongrad in forum Access
    Replies: 1
    Last Post: 12-02-2009, 09:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums