M
mark r
here's the code
my report comes up with no data with this code if I
populate idfilter. if i leave it blank, all the records
come up.
there is nothing wrong with the form. the fieldname, the
form name are correct.
private Sub bvd_Click()
On Error GoTo Err_test_Click
Dim stDame As String
stDame = "bvd"
DoCmd.OpenReport stDame, acPreview, testbvd, ,
acWindowNormal
DoCmd.OpenReport stDame, acPreview, , pushupp =
[Forms]![test]![idfilter], acWindowNormal
' DoCmd.OpenReport stDame, acPreview, , (pushupp)
= "cam"
' DoCmd.OpenReport stDame, acPreview, , (((pushupp) =
[Forms]![test]![idfilter]))
'DoCmd.OpenReport stDame, acPreview, , (((bvd.pushupp)
= Forms]![test]![idfilter]))
'WHERE (((BVD.pushupp)=[forms]![test]![idfilter]));
Exit_bvd:
Exit Sub
Err_test_Click:
MsgBox Err.description
Resume Exit_bvd
End Sub
my report comes up with no data with this code if I
populate idfilter. if i leave it blank, all the records
come up.
there is nothing wrong with the form. the fieldname, the
form name are correct.
private Sub bvd_Click()
On Error GoTo Err_test_Click
Dim stDame As String
stDame = "bvd"
DoCmd.OpenReport stDame, acPreview, testbvd, ,
acWindowNormal
DoCmd.OpenReport stDame, acPreview, , pushupp =
[Forms]![test]![idfilter], acWindowNormal
' DoCmd.OpenReport stDame, acPreview, , (pushupp)
= "cam"
' DoCmd.OpenReport stDame, acPreview, , (((pushupp) =
[Forms]![test]![idfilter]))
'DoCmd.OpenReport stDame, acPreview, , (((bvd.pushupp)
= Forms]![test]![idfilter]))
'WHERE (((BVD.pushupp)=[forms]![test]![idfilter]));
Exit_bvd:
Exit Sub
Err_test_Click:
MsgBox Err.description
Resume Exit_bvd
End Sub