RandyMyers
IS-IT--Management
Normaly in an Access MDB I could use the statement
[Forms]![frmSystemsEdit]![frmSystemsSoftwareSub].[Form]![SWKey]
to refer to the [SWKey] field in the [frmSystemsSoftwareSub] subform on the [frmSystemsEdit] form in a SetValue macro, however in ADP it returns the following error
"The object you referenced in the Visual Basic procedure as an OLE object isn't an OLE object"
If I was referring to the field [SWKey] on the main form [frmSystemsEdit] with the statement
[Forms]![frmSystemsEdit]![SWKey]
it works fine, with no errors in either MDB or ADP.
Basically I am trying to auto set fields from combo boxes using SetValue statements. I use these all the time and on the main forms they always work fine but on subforms I get this error, while in normal Access MDBs this method always works fine.
The above statement would be in the Item arguement on the SetValue macro statement and the following statement would be in the expression box
[Forms]![frmSystemsEdit]![frmSystemsSoftwareSub].[Form]![TitleNo].[Column](1)
Please, does anybody understand why this does not work in ADP but works perfectly in MDB.
Thank you a head of time for your help!
[Forms]![frmSystemsEdit]![frmSystemsSoftwareSub].[Form]![SWKey]
to refer to the [SWKey] field in the [frmSystemsSoftwareSub] subform on the [frmSystemsEdit] form in a SetValue macro, however in ADP it returns the following error
"The object you referenced in the Visual Basic procedure as an OLE object isn't an OLE object"
If I was referring to the field [SWKey] on the main form [frmSystemsEdit] with the statement
[Forms]![frmSystemsEdit]![SWKey]
it works fine, with no errors in either MDB or ADP.
Basically I am trying to auto set fields from combo boxes using SetValue statements. I use these all the time and on the main forms they always work fine but on subforms I get this error, while in normal Access MDBs this method always works fine.
The above statement would be in the Item arguement on the SetValue macro statement and the following statement would be in the expression box
[Forms]![frmSystemsEdit]![frmSystemsSoftwareSub].[Form]![TitleNo].[Column](1)
Please, does anybody understand why this does not work in ADP but works perfectly in MDB.
Thank you a head of time for your help!