M
Mark in Michigan
I know this can be done, but I always have a hard time with syntax and
defining variables.
I'm trying to automate report generation. I have a form, "Budget_Form" that
has a combo box "Branches". I want to populate "Branches" from the "Branch"
field of table "Branch_auto_print" and print report "Budget_Report" for each
record in the table.
From reading this board, that basis looping code is something like:
Dim rs As DAO.Recordset
Set rs = dbEngine(0)(0).OpenRecordset("MyTable")
Do While Not rs.EOF
'useful stuff in here
rs.MoveNext
Loop
rs.Close
Can anyone help me to get similar code working for this project? Again, I
don't know which varianbles to define and I need the syntax for setting the
value of the combo box and printing the report.
defining variables.
I'm trying to automate report generation. I have a form, "Budget_Form" that
has a combo box "Branches". I want to populate "Branches" from the "Branch"
field of table "Branch_auto_print" and print report "Budget_Report" for each
record in the table.
From reading this board, that basis looping code is something like:
Dim rs As DAO.Recordset
Set rs = dbEngine(0)(0).OpenRecordset("MyTable")
Do While Not rs.EOF
'useful stuff in here
rs.MoveNext
Loop
rs.Close
Can anyone help me to get similar code working for this project? Again, I
don't know which varianbles to define and I need the syntax for setting the
value of the combo box and printing the report.