V
Veli Izzet
Hi all,
For a report from a form I have the following code
-----
Private Sub cmdCariHareket_Click()
On Error GoTo Err_cmdCariHareket_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Cari Hareketler Detay"
stLinkCriteria = "[MTID]=" & Me![MTID]
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Exit_cmdCariHareket_Click:
Exit Sub
Err_cmdCariHareket_Click:
MsgBox Err.Description
Resume Exit_cmdCariHareket_Click
End Sub
-----
MTID is text, and I cannot get the report bound to MTID.
When MTID is numeric, there was no problem.
Can somebody help me with the syntax please..
Thanks for answers
For a report from a form I have the following code
-----
Private Sub cmdCariHareket_Click()
On Error GoTo Err_cmdCariHareket_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Cari Hareketler Detay"
stLinkCriteria = "[MTID]=" & Me![MTID]
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Exit_cmdCariHareket_Click:
Exit Sub
Err_cmdCariHareket_Click:
MsgBox Err.Description
Resume Exit_cmdCariHareket_Click
End Sub
-----
MTID is text, and I cannot get the report bound to MTID.
When MTID is numeric, there was no problem.
Can somebody help me with the syntax please..
Thanks for answers