To create view with parameter

P

pol

Please anybody can advice me with the steps to create a veiw with parameters
in MsAccess 2007 . I have the following colum

invoicemonth numeric
invoiceyear numeric
invoiceamt double

the parameter

where invoicemonth >= ar_monthfrom and
and invoicemonth <= ar_monthto

Please help . It would be very helpful.

With thanks

Pol
 
D

Douglas J. Steele

Are you saying that you want the user to be prompted for ar_monthfrom and
ar_monthto?

Put the following as the criteria under the invoicemonth field in your QBE
grid:

Between [ar_monthfrom] And [ar_monthto]

Or are you saying that ar_monthfrom and ar_monthto are fields in another
table linked to the original table via an Inner Join?

Go into the SQL of the query and replace the ON clause with your
inequalities.
 

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