Code:
Option Compare Database
Option Explicit
'These are used as rollbacks
'Called by cmdCancel_click()
'Updated by Form_Current
Static RBBidPrice As Single
Static RBBuyoutPrice As Single
Static RBDeposit As Single
Static RBAHCut As Single
Does anyone have any thoughts on this? Is there a setting that I have missed? Or should I simply stay away from static variables?

Additional Information...
When added and trying to open the form I am notified by the program with this dialog...
The expression On Load you entered as the event property setting produced the following error: Invalid outside procedure.
I also receive the same message pointing to the On Current expression with the same invalid outside procedure error.
Code:
Private Sub Form_Load()
Dim db As Database
Dim rst As DAO.Recordset
Set db = CurrentDb
Set rst = CurrentDb.OpenRecordset("qryMarkSold")
With rst
Me.RecordSource = "qryMarkSold"
.MoveFirst
Me.Bookmark = .Bookmark
.Close
End With
Set rst = Nothing
Set db = Nothing
End Sub
Private Sub Form_Current()
With Me
.cboComposition.RowSource = CompositionComboSQL(.cboType)
'Set rollbacks
RBBid = .txtBid_Price
RBBuyout = .txtBO_Price
RBDeposit = .txtDeposit
If Not IsNull(.txtAH_Cut) Then
RBAHCut = .txtAH_Cut
End If
End With
End Sub
Last edited: