This is driving me absolutely nuts!!!
Within my database, you can open a form based off of tbl_streets that has a bunch of different data. tbl_streets has a PK named SID (an AutoNumber). I want to be able to print everything I can see in this form view (data from tbl_streets, tbl_maintenance, tbl_distance) as a report. My current (not working) method has been to create a report based off of all three tables, and then attempt to print a report based on the SID of the current record being viewed. I've only had dismal failures trying this. Here is my current code:
My report is called rpt_streets.
Within my database, you can open a form based off of tbl_streets that has a bunch of different data. tbl_streets has a PK named SID (an AutoNumber). I want to be able to print everything I can see in this form view (data from tbl_streets, tbl_maintenance, tbl_distance) as a report. My current (not working) method has been to create a report based off of all three tables, and then attempt to print a report based on the SID of the current record being viewed. I've only had dismal failures trying this. Here is my current code:
Code:
Private Sub Image13_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error GoTo Err_Image13_MouseUp
' Special Effect (Flat)
Image13.SpecialEffect = 0
' Open Form
Dim strDocName As String
strDocName = "rpt_streets"
DoCmd.OpenReport strDocName, aViewNormal, "qry_rpt_streets"
Exit_Image13_MouseUp:
Exit Sub
Err_Image13_MouseUp:
MsgBox Err.Description
Resume Exit_Image13_MouseUp
End Sub
My report is called rpt_streets.