User Prompt

F

FJquestioner

If I want a report to be limited to a user specified subset of the underlying
query dynaset, how do I prompt the user to input the specific value for a
given field?

Also, every time I try to Publish a report to Word it works fine except all
lines are missing. They show up fine in the acces report preview but never in
Word. Any way to get around that?

Thanks very much.

FJ
 
D

Duane Hookom

You can filter the records in a report in many ways. One of the simplest and
least user-friendly is to simply place a parameter prompt in the criteria
under the "given field" like:
[Enter Department Code]

Lines and many other elements of reports do not make it to the Word
document.
 
F

FJquestioner

Thanks. That worked fine but as you noted, its not particularly user
friendly. Is there a more professional looking way. For example if I wanted
to see a report of invoices fro Jan 1 to March 31, how could I have the user
enter those date parameters?
Thank again.

FJ

Duane Hookom said:
You can filter the records in a report in many ways. One of the simplest and
least user-friendly is to simply place a parameter prompt in the criteria
under the "given field" like:
[Enter Department Code]

Lines and many other elements of reports do not make it to the Word
document.


--
Duane Hookom
MS Access MVP

FJquestioner said:
If I want a report to be limited to a user specified subset of the
underlying
query dynaset, how do I prompt the user to input the specific value for a
given field?

Also, every time I try to Publish a report to Word it works fine except
all
lines are missing. They show up fine in the acces report preview but never
in
Word. Any way to get around that?

Thanks very much.

FJ
 
D

Duane Hookom

You add a couple text boxes to a form and name them txtStart and txtEnd.
Then you add code to open your report like:

Dim strWhere as String
strWhere = "1=1 "
If Not Isnull(Me.txtStart) Then
strWhere = strWhere & " And [InvoiceDate]>=#" & _
Me.txtStart & "# "
End If
If Not Isnull(Me.txtEnd) Then
strWhere = strWhere & " And [InvoiceDate]<=#" & _
Me.txtEnd & "# "
End If
DoCmd.OpenReport "rptInvoices", acPreview, , strWhere


--
Duane Hookom
MS Access MVP


FJquestioner said:
Thanks. That worked fine but as you noted, its not particularly user
friendly. Is there a more professional looking way. For example if I
wanted
to see a report of invoices fro Jan 1 to March 31, how could I have the
user
enter those date parameters?
Thank again.

FJ

Duane Hookom said:
You can filter the records in a report in many ways. One of the simplest
and
least user-friendly is to simply place a parameter prompt in the criteria
under the "given field" like:
[Enter Department Code]

Lines and many other elements of reports do not make it to the Word
document.


--
Duane Hookom
MS Access MVP

FJquestioner said:
If I want a report to be limited to a user specified subset of the
underlying
query dynaset, how do I prompt the user to input the specific value for
a
given field?

Also, every time I try to Publish a report to Word it works fine except
all
lines are missing. They show up fine in the acces report preview but
never
in
Word. Any way to get around that?

Thanks very much.

FJ
 

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