L
ladybug via AccessMonster.com
I have a command button on a subform that opens another form. The On Click
Event has this procedure:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmSection1PhysInfo"
stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
The "ID" is not populating on the second form. However, if I close the main
form and then open it and click the button the ID appears. Can someone help
me get the ID to populate the first time the button is clicked? Thanks!
Event has this procedure:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmSection1PhysInfo"
stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
The "ID" is not populating on the second form. However, if I close the main
form and then open it and click the button the ID appears. Can someone help
me get the ID to populate the first time the button is clicked? Thanks!