Hi all..
I have what I need "ALMOST"
I have a form with a subform
The subform has a check box..
On click another subform opens with linking information..
What I need is, if the linking information is there, find it, if its not there, add it..
Here is what I have now.. It finds it but if its not there then it just opens as blank..
Does this mess make sense?? Thanks
Private Sub Check28_Click()
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "STATUSformsub"
stlinkcriteria = "[VISIT]=" & "'" & Me![VST] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stlinkcriteria
End Sub
I have what I need "ALMOST"
I have a form with a subform
The subform has a check box..
On click another subform opens with linking information..
What I need is, if the linking information is there, find it, if its not there, add it..
Here is what I have now.. It finds it but if its not there then it just opens as blank..
Does this mess make sense?? Thanks
Private Sub Check28_Click()
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "STATUSformsub"
stlinkcriteria = "[VISIT]=" & "'" & Me![VST] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stlinkcriteria
End Sub