summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2017-07-13 17:17:43 +0200
committerJean-Pierre Ledure <jp@ledure.be>2017-07-13 17:17:43 +0200
commit3cf9b747141bc5f74dc64cefbc5d5b2611ab0a4d (patch)
treeace02018ede410fd7d357ed8f7048dfe48a56db6
parentde0acf13b2dee2f7ad25de43f17acab73f1c7eac (diff)
Access2Base - RecordSource property of SubForm class
Use Command property i.o. ActiveCommand because Command is additionally valid when form opened in Design mode Change-Id: I0c9e545419ec99d444ac15b20466c838d53f738f
-rw-r--r--wizards/source/access2base/SubForm.xba12
1 files changed, 6 insertions, 6 deletions
diff --git a/wizards/source/access2base/SubForm.xba b/wizards/source/access2base/SubForm.xba
index ac452412ad3d..bead65c95248 100644
--- a/wizards/source/access2base/SubForm.xba
+++ b/wizards/source/access2base/SubForm.xba
@@ -124,6 +124,11 @@ Public Function pName() As String &apos; For compatibility with &lt; V0.9.0
End Function &apos; pName (get)
REM -----------------------------------------------------------------------------------------------------------------------
+Property Get ObjectType() As String
+ ObjectType = _PropertyGet(&quot;ObjectType&quot;)
+End Property &apos; ObjectType (get)
+
+REM -----------------------------------------------------------------------------------------------------------------------
Property Get OnApproveCursorMove() As Variant
OnApproveCursorMove = _PropertyGet(&quot;OnApproveCursorMove&quot;)
End Property &apos; OnApproveCursorMove (get)
@@ -259,11 +264,6 @@ Property Let OnUnloading(ByVal pvValue As Variant)
End Property &apos; OnUnloading (set)
REM -----------------------------------------------------------------------------------------------------------------------
-Property Get ObjectType() As String
- ObjectType = _PropertyGet(&quot;ObjectType&quot;)
-End Property &apos; ObjectType (get)
-
-REM -----------------------------------------------------------------------------------------------------------------------
Public Function OptionGroup(ByVal Optional pvGroupName As Variant) As Variant
&apos; Return either an error or an object of type OPTIONGROUP based on its name
@@ -642,7 +642,7 @@ Dim oDatabase As Object, vBookmark As Variant, oObject As Object
End With
Set _PropertyGet = oObject
Case UCase(&quot;RecordSource&quot;)
- _PropertyGet = DatabaseForm.ActiveCommand
+ _PropertyGet = DatabaseForm.Command
Case Else
Goto Trace_Error
End Select