records are not displayed in table

In my applicatin i want to display order details in a table.. on 1 button's event i have wrote the code to display all the records.. and on other  for displayin order details between chosen dates..
i wrote the show_all code first ,it was workin properly until i wrote the chosen-dates code.
Now chosen-dates details r printed in the table but show_all details are not printed..
i am attaching both codes pls suggest a solution..
show-all-code.txt
show-record-between-chosen-dates.txt
daydreamer6565Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AnuroopsunddCommented:
try  as below

dDateFrom=#???#
dDateTo=  ????


SELECT * FROM ordertbl where ORDERDATE   BETWEEN " & dDateFrom & " AND " & dDateTo
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
daydreamer6565Author Commented:
the problem is wid show all details ..
the other one works fine..
0
daydreamer6565Author Commented:
I got the solution had used different table models for both the codes instead of same..
0
AnuroopsunddCommented:
Great.. was just loooking throguh it..
0
daydreamer6565Author Commented:
k thanks ..so il accept ur solution as u atleast tried..:)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.