Hello Everyone: I have a main form with many subforms placed on tabbed pages, all linked to the main form. I would like to change some the subforms to be opened by a button instead. But the problem is that some of the subforms have not yet been populated, so I will need to pass the main form's primary key to the subform that opens. Just so the user does not have to enter it again.
I get an error, Enter Paramater value "zb". That [Pound_Sheet_No] is 1000-zb. So, I don't understand how to fix this.
If there is an easier way to change a linked subform to a button, please let me know.
Thank you, Sophia
Code:
Private Sub BtnPound_Release_Click()
DoCmd.OpenForm "SubformCatDetailsPoundRelease", WhereCondition:="[Pound_Sheet_No]=" & Me![Pound_Sheet_No], WindowMode:=acDialog, OpenArgs:=Me.Pound_Sheet_No
End Sub
I get an error, Enter Paramater value "zb". That [Pound_Sheet_No] is 1000-zb. So, I don't understand how to fix this.
If there is an easier way to change a linked subform to a button, please let me know.
Thank you, Sophia