S
Stapes
Hi
I have the following code in my calling form:
Dim stDocName As String
Dim stLinkCriteria As String
If Not IsNull([Forms]![Old Contacts List].Form.[Combo43]) Then
stLinkCriteria = "FK_Type=" & [Forms]![Old Contacts List].Form.
[Combo43]
End If
stDocName = "Form1"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Form1 uses datasheet view, and include the field FK_Type. However,
when I try to use this criteria, I get all the records. What am I
doing wrong?
Stapes
I have the following code in my calling form:
Dim stDocName As String
Dim stLinkCriteria As String
If Not IsNull([Forms]![Old Contacts List].Form.[Combo43]) Then
stLinkCriteria = "FK_Type=" & [Forms]![Old Contacts List].Form.
[Combo43]
End If
stDocName = "Form1"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Form1 uses datasheet view, and include the field FK_Type. However,
when I try to use this criteria, I get all the records. What am I
doing wrong?
Stapes