English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Dear Members,

I am trying to make parameter query in Access, between[Date1] and [Date2] , this is Ok, but If I need all dates, I give * in both User Input box, but It gives me error, please tell me how I can get all dates by give parameter value "*" in the field.

2007-03-26 18:47:48 · 2 answers · asked by Lucky 2 in Computers & Internet Programming & Design

2 answers

Use the criteria:
Between [date1] And [date2] Or Like "*"

Now when you run the query, if you want all dates, don't put anything in date 1 or date 2 prompts, just click OK and the query will return all dates.

2007-03-29 11:49:37 · answer #1 · answered by MamaBean 3 · 0 0

check if both fields filled by "*" use another SQL statement:
select * from [table]
it's best solution!

2007-03-28 10:53:44 · answer #2 · answered by Maysam 4 · 0 0

fedest.com, questions and answers