I'm sure I have done this before but for the life on me i can't work it out now.
I can reference an object ok on the subform; can execute the forms' function from the common module when it is not a subform. Unfortunately, after 218 variations (possibly) I have not got the syntax to work when I try to execute the function on the subform.
I get the message - "the expression you entered has a function name that microsoft Access can't find."
-----------------------
Public Function fDelGame()
' this function is generally executed from a short cut menu. It, in turns,
' executes the function "fDeleteGame" which resides in the form code
' for fGames. fGames may be the subform source object of fMain - sfMain.
'
If fIsLoaded("fMain") Then
Forms.fMain.sfMain.Form.fDeleteGame ' this is the line i'm struggling with
Else
Forms.fGames.fDeleteGame
End If
End Function
-----------------------------
Any help would be appreciated.
Ta ... Peter
I can reference an object ok on the subform; can execute the forms' function from the common module when it is not a subform. Unfortunately, after 218 variations (possibly) I have not got the syntax to work when I try to execute the function on the subform.
I get the message - "the expression you entered has a function name that microsoft Access can't find."
-----------------------
Code:
' this function is generally executed from a short cut menu. It, in turns,
' executes the function "fDeleteGame" which resides in the form code
' for fGames. fGames may be the subform source object of fMain - sfMain.
'
If fIsLoaded("fMain") Then
Forms.fMain.sfMain.Form.fDeleteGame ' this is the line i'm struggling with
Else
Forms.fGames.fDeleteGame
End If
End Function
Code:
Any help would be appreciated.
Ta ... Peter
Last edited: