![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In a subform I have this query: strSQL = "Delete ID_hyperlink FROM tbHyperlink " & _ "WHERE (((ID_hyperlink)=" & [Forms]![frmRequest]![subfrmHypLink].[Form]![ID_hyperlink] & "));" Now I want to change the code so I can use it for another main form as well like frmArticle: [Forms]![frmArticle]![subfrmHypLink].[Form]![ID_hyperlink] Unfortunately Parent.Name doesn't work in this case: [Forms]!Parent.Name![subfrmHypLink].[Form]![ID_hyperlink] Is there a way to easily refer to the right main form in the above code? Thanks, Martin Me.Parent.Name![subfrmHypLink].[Form]![ID_hyperlink] |
#3
| |||
| |||
|
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |