Recent content by lution

  1. L

    Custom ribbon with 365

    I have a custom ribbon in my 2007 application. In the custom ribbon I have a bunch of stuff and part of it is: <group idMso="GroupRecords"></group> <group idMso="GroupSortAndFilter"></group> <group idMso="GroupFindAccess"></group> The ribbon works fine in...
  2. L

    Way to tell if user is filtering by form?

    I have code in several methods on one of my forms. When the user filters by form, all the code fires and most doesn't need to since there isn't any data on the form as the user is putting in their filter information. Is there a way to tell if the form is open to do a filter by form? Regular...
  3. L

    VBA code works on one machine but not other

    Figured it out by commenting out the calls to store/set to make sure the accde worked without any of it in there. Then uncommented the first form save and set so only one was happening and copied that accde. It worked. Went to uncomment the second I realized that I had Set FormColumnOrders...
  4. L

    VBA code works on one machine but not other

    Posted the code in my first reply but here is the code that changes the columns: Public Sub SetFormDisplayOrder(ControlList As Controls) Dim myColOrder As clsColumnOrder Dim lngCount As Long Dim CurrentControl As control If Me.Count > 0 Then For lngCount = 1 To...
  5. L

    VBA code works on one machine but not other

    Cronk, yes. If I copy the accdb to the 2010 system it opens and runs fine with no errors. Dave, Will check the order of the references to confirm they are the same.
  6. L

    VBA code works on one machine but not other

    Here is my clsColumnOrder code in case it matters: ' Module : clsColumnOrder ' Description: ' Procedures : Get UserID() As Long ' Let UserID(ByVal lUserID As Long) ' Get FormName() As String ' Let FormName(ByVal sFormName As String) ' Get...
  7. L

    VBA code works on one machine but not other

    I have Access 2007 (32bit) on one machine and Access 2010 (32 bit) on another. I've written some code to save the column settings on 3 datasheet subforms. If I create a .accde on the 2007 machine from the .accdb on that machine everything works fine. If I copy the .accdb from the 2007 machine...
  8. L

    Getting extra characters in column

    Well, this is Access so field size sets the limit for how many characters the field will store. In this case the field is Text, Field Size = 25. I have two columns in the table with the exact same settings. Except, the LOR_NB field has extra characters tacked onto the end while WI_STE_NB...
  9. L

    Getting extra characters in column

    JHB, I just included that snippet since the function is so long. Here is the complete code. The only field that I've found fills the full character length is LOR_NB.: Private Sub TransformandAddv10(Records As DAO.Recordset, formType As String, Optional UsingSQL As Boolean = False) '...
  10. L

    Getting extra characters in column

    Weird behavior copying a column from one record to another. Code is: Set fld = Records.Fields("violationLocalOrdinanceNumber") If Len(fld & "") > 0 Then rst!LOR_NB = Nz(Records!violationLocalOrdinanceNumber, "")...
  11. L

    Subquery/Union? help

    Thanks Cronk. That got me going down the right path. I had to setup a query to get the max transaction id < [StartDate], grouped on citation number. This gets me the last time the citation was sent outside the user's date range. Had a couple other steps afterwards but this was the main thing...
  12. L

    Subquery/Union? help

    Think what I need is a subquery but not sure how to format it correctly. I have a table: tblCitationTransmit that I'm trying to use to create a report. I'm pulling all the fields in the table based on the dtmTransmitTime (when the record was sent) so select * from tblCitationTransmit where...
  13. L

    Unable to get My Documents path

    The following function properly returns the My Documents path on all my client's systems except one. Its a Win8 system and the IT person changed My Documents to be on a server. I get a error 76, path not found from pappWord.System.PrivateProfileString. If I run as an .accdb on the system it...
  14. L

    ActiveX component can't create object

    I have a VB.net Access COM add-in that connects to a web service to pull data. If I run my .accdb it connects to the service fine and pulls the data. If instead, I compile the .accdb into a .accde and run the same command from the .accde, I get "ActiveX component can't create object" error. I...
  15. L

    ambiguous join error

    Hadn't thought about linking to the tables temporarily. Will give that a shot. I can't keep them as linked permanently though because the database name changes and they won't let me keep the connection open permananetly.
Top Bottom