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 to the 2010 machine and create a 2010 .accde, everything works fine. If I try to create the .accde on the 2007 machine and copy it to the 2010 machine, the subforms are empty. The VBA compiles on both machines and the application runs with no other errors so I don't think its a missing reference.
What is even weirder, is it is updating the display for one of the subforms but not the other 2 in .accde mode (updates all 3 in .accdb mode).
In the on_close of the main form I have :
In the on_load of the main form I have the following:
I have 2 class modules that I added, one for an instance of a set of column properties, and another that is a list of column properties. I can post all the code if necessary but it basically takes the controls from the form as input and stores it in a table in the database on close and reverses the process on open.
The data is written to the table in the database on close when in .accdb mode or in .accde mode when the .accde was created on that machine.
I can't figure out why putting the accdb on each machine and then creating the .accde from there works but creating the .accde on the 2007 machine and using it elsewhere doesn't. I have clients that use everything from 2007 through 2015 so I need to start at the lowest common denominator.
Since it is failing in the .accde I can't do breakpoints and I'm at a loss for what to check.
Thoughts?
What is even weirder, is it is updating the display for one of the subforms but not the other 2 in .accde mode (updates all 3 in .accdb mode).
In the on_close of the main form I have :
Code:
Private Sub SaveColumnOrders()
Call SaveTransmitHistoryColumnOrders
Call SaveTransactionsColumnOrder
Call SaveDefendantSummaryColumnOrders
End Sub
Private Sub SaveDefendantSummaryColumnOrders()
Dim FormColumnOrders As clsColumnOrders
Set FormColumnOrders = New clsColumnOrders
FormColumnOrders.AddSet Me.frmDefendantSummary2.Name, Me.frmDefendantSummary2.Form.Controls
FormColumnOrders.Save
End Sub
Private Sub SaveTransactionsColumnOrder()
Dim FormColumnOrders As clsColumnOrders
Set FormColumnOrders = New clsColumnOrders
FormColumnOrders.AddSet Me.subfrmFinancialTransactions.Name, Me.subfrmFinancialTransactions.Form.Controls
FormColumnOrders.Save
End Sub
Private Sub SaveTransmitHistoryColumnOrders()
Dim FormColumnOrders As clsColumnOrders
Set FormColumnOrders = New clsColumnOrders
FormColumnOrders.AddSet Me.subfrmTransmitHistory.Name, Me.subfrmTransmitHistory.Form.Controls
FormColumnOrders.Save
End Sub
In the on_load of the main form I have the following:
Code:
Private Sub SetColumnSettings()
Call SetDefendantSummaryColumnSettings
Call SetTransactionsColumnSettings
Call SetCaseTransmitHistorysubformColumnSettings
Me.Repaint
End Sub
Private Sub SetDefendantSummaryColumnSettings()
Dim FormColumnOrders As clsColumnOrders
Set FormColumnOrders = New clsColumnOrders
FormColumnOrders.Load gCurrentUser, Me.frmDefendantSummary2.Name
FormColumnOrders.SetFormDisplayOrder Me.frmDefendantSummary2.Form.Controls
End Sub
Private Sub SetTransactionsColumnSettings()
Dim FormColumnOrders As clsColumnOrders
Set FormColumnOrders = New clsColumnOrders
FormColumnOrders.Load gCurrentUser, Me.subfrmFinancialTransactions.Name
FormColumnOrders.SetFormDisplayOrder Me.subfrmFinancialTransactions.Form.Controls
End Sub
Private Sub SetCaseTransmitHistorysubformColumnSettings()
Dim FormColumnOrders As clsColumnOrders
Set FormColumnOrders = New clsColumnOrders
FormColumnOrders.Load gCurrentUser, Me.subfrmTransmitHistory.Name
FormColumnOrders.SetFormDisplayOrder Me.subfrmTransmitHistory.Form.Controls
End Sub
I have 2 class modules that I added, one for an instance of a set of column properties, and another that is a list of column properties. I can post all the code if necessary but it basically takes the controls from the form as input and stores it in a table in the database on close and reverses the process on open.
The data is written to the table in the database on close when in .accdb mode or in .accde mode when the .accde was created on that machine.
I can't figure out why putting the accdb on each machine and then creating the .accde from there works but creating the .accde on the 2007 machine and using it elsewhere doesn't. I have clients that use everything from 2007 through 2015 so I need to start at the lowest common denominator.
Since it is failing in the .accde I can't do breakpoints and I'm at a loss for what to check.
Thoughts?