I can't find out the reference to the form I'm supposed to be calling the GetData Sub, it keeps erroring.
I was hoping to put a message box in the GetData Sub that would tell me the form reference.
frmLedgerFull has a subform which I thought was called frmSubLedgerFull but there's tabs and stuff as well...
Seems the subform name is frmOutstanding and its source object is frmSubLedgerFull
Code:
Private Sub optGroup_SortOrder_AfterUpdate()
'On Error GoTo LocalHandler
Dim optValue As Integer
Dim db As Database
Dim myquery As querydef
Set db = CurrentDb()
Set myquery = db.CreateQueryDef("")
myquery.Connect = connection
optValue = optGroup_SortOrder.Value
'MsgBox (optValue)
If IsLoaded("frmOutstandingTasks") Then
varcc = Forms!frmOutstandingTasks!tempcc
Else
varcc = Forms!frmAdminScreen!tempccname
End If
Forms!frmLedgerFull!frmSubLedgerFull.GetData (optValue)
Exit Sub
LocalHandler:
MsgBox (Err.Description)
End Sub
I was hoping to put a message box in the GetData Sub that would tell me the form reference.
frmLedgerFull has a subform which I thought was called frmSubLedgerFull but there's tabs and stuff as well...
Seems the subform name is frmOutstanding and its source object is frmSubLedgerFull
Last edited: