2 questions

G

GSealey

Please answer the following:

1. You want to allow the user to enter the Last Name used
as selection criteria for a Query. What would you enter
in the criteria row of the Last Name?

2.You want to allow the user to select the range of dates
to be used as selection criteria for a query. What would
you enter in the criteria row of the Payment Due field?
 
J

John Vinson

Please answer the following:

1. You want to allow the user to enter the Last Name used
as selection criteria for a Query. What would you enter
in the criteria row of the Last Name?

[Enter last name:]

but see below...
2.You want to allow the user to select the range of dates
to be used as selection criteria for a query. What would
you enter in the criteria row of the Payment Due field?
= CDate([Enter start date:]) AND < DateAdd("d", 1, CDate([Enter end date:]))

It's often convenient to give the user a drop-down list (a "Combo
Box") for names so they don't have to be so precise with the spelling:
searching for "Seely" will of course not find Sealy but it's the kind
of thing that a user might do. One alternative is to create a small
unbound Form, frmCrit let's call it, with a combo box listing all the
last names in alphabetical order (perhaps with first name and some
additional info so you can distinguish Fred Jones the cafeteria busboy
from Fred Jones the head of Marketing); call this combo cboLastName.
You can then use a criterion of

=[Forms]![frmCrit]![cboLastName]

If the combo's bound column returns the unique personID (if you have
one!) then that's all the better. You'ld use similar form references
in place of the [Enter start date:] and [Enter end date:] criteria
above.
 

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