In Nomine Noctis
New member
- Local time
- Today, 03:22
- Joined
- Aug 16, 2013
- Messages
- 9
guys, been searching across google for a answer but found nothing of course...(am n00b in VBA BTW)
the thing is,
there is a query and report "01 qry Main" and from the main FORM I like to print out into txt file actual record, my code is:
Ill be really appreciated for any help with this,
thanks
david
the thing is,
there is a query and report "01 qry Main" and from the main FORM I like to print out into txt file actual record, my code is:
there should be an option "ID = " & Me.ID.Value or something like this to print out only actual recordPrivate Sub Command24_Click()
On Error GoTo Err_Command24_Click
Dim stDocName As String
stDocName = "01 qry Main"
DoCmd.OutputTo acOutputReport, "01 qry Main", acFormatTXT, "D:\10 Dbase\CTQ stuff\saveReportFormat.txt", False
Exit_Command24_Click:
Exit Sub
Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command24_Click
End Sub
Ill be really appreciated for any help with this,
thanks
david