Open report

G

Guest

Hi..

how can i open a report from a buttom on my form in the way that i use my combo box [Tips Nummer] as a parameter (the report is based on a query where "Tips nummer" must be my input parameter) .

Thanks for any help!!

Erik
 
M

Marshall Barton

Erik said:
how can i open a report from a buttom on my form in the way that i use my combo box [Tips Nummer] as a parameter (the report is based on a query where "Tips nummer" must be my input parameter) .


Use the command button wizard to create the code to preview
the report. Then open the form's module and modify the code
to look like:

Dim stDoc As String
Dim stWhere As String

stDoc = "nameofreport"
stWhere = "[Tips Nummer] = " & thecombobox
DoCmd.OpenForm stDoc,acViewPreview, , stWhere
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top