G
ges via AccessMonster.com
I try to create report from opened form so user can key in the data to filter
the report.
I pass over values from opened form into report header. Then based on the
value entered in the opened form, I created several sql statements. When I
run the code it did not give me any error, the result of the report is about
20 pages, but only the page header populated (from opened form values), but
the details section is blank all 20 pages. Below is my code:
Public Sub Report_Open(Cancel As Integer)
SQLSetup strSQLtxt
Me.RecordSource = strSQLtxt
Exit_Report_Open:
This is my first time to create report using vba code, so I have no idea at
all how it work.
I’ve been stuck for a couple of days try to figure out the way to do this.
Any one kindly enough to help me?
Thanks in advance for any help.
Ges
the report.
I pass over values from opened form into report header. Then based on the
value entered in the opened form, I created several sql statements. When I
run the code it did not give me any error, the result of the report is about
20 pages, but only the page header populated (from opened form values), but
the details section is blank all 20 pages. Below is my code:
Public Sub Report_Open(Cancel As Integer)
SQLSetup strSQLtxt
Me.RecordSource = strSQLtxt
Exit_Report_Open:
This is my first time to create report using vba code, so I have no idea at
all how it work.
I’ve been stuck for a couple of days try to figure out the way to do this.
Any one kindly enough to help me?
Thanks in advance for any help.
Ges