User Profile

Collapse

Profile Sidebar

Collapse
drumahh
drumahh
Last Activity: Nov 3 '16, 02:14 PM
Joined: Apr 17 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • The Microsoft Access database file which serves as my library contains "linked" SharePoint lists. Within that library, I read and write to those SharePoint lists via Microsoft Access functionality.

    I then link that library file via the "reference" method to two other Microsoft Access applications, and call the public functions within the library, which read and write to the SharePoint lists.
    See more | Go to post

    Leave a comment:


  • Very happy, although somewhat disconcerting about Microsoft's obscure features. Within my library database I had to set an option for SharePoint caching, which I would not have thought of. But I have successfully referenced two library access databases and opened them using two apps, so it appears to be a go.

    I found the answer here:
    http://www.access-programmers.co.uk/...d.php?t=214875

    From the...
    See more | Go to post

    Leave a comment:


  • So I found the specific locking issue. In my library database, I have a linked SharePoint list. When I delete the link to the list, I can open up both applications that reference the same library file.

    So, it is indeed related to "table" access. So now I need to figure out if the way I'm linking the SharePoint list can be modified so that it is "shared" - you'd think SharePoint could "share" :)
    See more | Go to post

    Leave a comment:


  • My hope is not only to include one library database in our main applications, but multiple library databases with distinct functionality. For example, common file writing techniques, imports and exports from Excel or PDF, common SQL routines, logging routines, common open and close Access recordset and query routines, common logon methods etc.

    If it works out, it will really streamline our existing and future applications.
    See more | Go to post

    Leave a comment:


  • Thank you for your reply. I think you are on to something. I used a very simple "HelloWorld " library which has a function that returns a "Hello World". I created 2 apps that call it and they both open without issue.

    I will see where I can make references to other tables/Select statements in the prior database and see if it may be causing the lock issues.

    Thanks, I'll try and let you know
    See more | Go to post

    Leave a comment:


  • Sharing a Microsoft Access reference with multiple databases

    I have created a "library" Access Database. I "reference" this library file within another Microsoft Access database by using Tools->References->Browse->
    File Name: (Libraryfile.ac cdb)
    Files of Type: Microsoft Access Databases (*.accdb)

    This works as planned.

    When I create a second Microsoft Access that references the same library, it works.

    Unfortunately, it...
    See more | Go to post

  • >>why I asked for the stored query's SQL in hopes that somehting there would help explain.

    So does the 1 join SQL statement or the ODBC connection explain anything?
    See more | Go to post

    Leave a comment:


  • I used Mr. Riggs solution by using a Pass-Through query, and then an Append query referencing the Pass-Through query. The time for the execution is now about 15 seconds. It was 5 minutes using VBA and just over a minute clicking the interface. So, I will be using a Pass-Through queries as much as possible, and bypassing the Access Jet layer when I can. It is truly the best solution

    Regarding the SQL and ODBC, here is the neutered SQL...
    See more | Go to post

    Leave a comment:


  • Append Query runs slower in VBA than if I click on it in Access 2007 interface. Why?

    My query, "Append_History _Query," appends Oracle data to a local Access table. It has 2 date parameters. It has one join from one Oracle table to another. It is appending approximately 20,000 records, with about 20 fields.

    The originating tables are on the Oracle server. There is a primary key - foreign key to the linked Oracle tables it is linking to. The local table it is appending to is empty and is not indexed.
    ...
    See more | Go to post

  • I just ried ByRef and that produced the same error. I tried ByVal just to see and that failed as well.

    Code:
    Public Function ChangeHeight(ByRef SubFormObj As Access.SubForm)
     
    Debug.Print SubFormObj.Height
     
    End Function
    See more | Go to post

    Leave a comment:


  • Thank You

    This will work.

    I have reattached the zip file of the small sample with the working code.

    Fundamentally, the form or subform object should be expected to be used, but this appears to be a better workaround than the one I had....
    See more | Go to post

    Leave a comment:


  • >>you the to tell the function where is the object..

    Yes, that is the crux of the issue. I can't "tell" the function that this is my form object without getting a "Type mismatch" error.

    I SHOULD be able to, but Microsoft Access is not letting me.

    Thanks!
    See more | Go to post

    Leave a comment:


  • Workaaround and why I'm doing this

    I wish to have a function that dynamically changes the height of a Subform, for any SubForm on any form.

    This workaround works, BUT I’d rather pass the form object than calculate it by passing the name of the form and the name of the subform:

    Code:
    Public Function ChangeHeight(MainFormName As String, SubFormName As String) As Boolean
    'Public Function ChangeHeight(SubFormObj
    ...
    See more | Go to post

    Leave a comment:


  • Attached picture

    Hi. Thanks for your reply. The error is:

    Run-time error '13':
    Type mismatch

    I’ve attached a screen shot of the error as well.

    I have a workaround in place but it is not elegant, so I don’t mind the delay. Thanks for looking at this in more depth.

    [imgnothumb]http://bytes.com/attachment.php? attachmentid=75 98[/imgnothumb]...
    See more | Go to post
    Last edited by zmbd; Apr 24 '14, 10:05 PM. Reason: [z{placed image inline}]

    Leave a comment:


  • Attached Zip File

    Hi,

    I've attached a very simple zip file with the source that replicates the issue. It has a MainForm containing a Subform.

    I did attempt to print out the name of the subform.

    I needed to add Me.Subform_grou pNames.Name to your suggestion to print out the name of the Subform....
    See more | Go to post

    Leave a comment:


  • Using a Form or Subform object as a parameter within a function

    From within a form module, I am calling a public function attempting to pass a Form or Subform object.
    Unfortunately, I continue to get a “Type mismatch” error when calling the function.

    Calling function within Form module:

    Code:
    Debug.Print TypeName(Me.Subform_groupNames)
    'Prints out: “SubForm”
    ChangeHeight (Me.Subform_groupNames)
    'Type mismatch #13”
    Public...
    See more | Go to post
No activity results to display
Show More
Working...