Access Report Parameters


Dear Sir
can you give me any sample database file or access vba code where report can filter by chose Interim date and select single customer data range.

like “Jon” buy how mane thing from 1/1/13 to 30/1/13

where jon is my customer

I just wane vba code for the command button oh i will chose customer name from combo box & date i will type in text box

Most of this code is based on parameter queries and not a whole lot of VBA. Take a look and get the database.

[sourcecode language=”vb”]

‘========================================================
‘DATABASE DESIGNED & CODED BY LOEBLCOM SERVICES 2013
‘ERIK LOEBL(713)409-7041
‘EMAIL: erik@loeblcomservices.com
‘WEB: http://loeblcomservices.com
‘========================================================

Option Compare Database

Private Sub btnReport_Click()
On Error Resume Next

DoCmd.OpenReport "rptOrders", acViewPreview
End Sub

Private Sub Report_NoData(Cancel As Integer)
MsgBox "No Data"
Cancel = True

End Sub

[/sourcecode]

Click here for the database and the code:
access-report-parameters.accdb

Free! Subscribe To Our YouTube Channel!

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather
Tags: , ,




 

Call Erik Now