Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Reports From VB

Status
Not open for further replies.

qwe1204

Programmer
Aug 30, 2001
21
GB
I have an access database with a number of reports that I want to run from VB. I have no problem displaying four of them but the fifth takes at least two date parameters in the where clause. I have tried supplying the two dates in the forms

([DateOrdered] >= 13/10/01 And [DateOrdered] <= 16/10/01)

([DateOrdered] >= 13/10/01 And [DateOrdered]<= '#16/10/01#')

[DateOrdered]>= '13/10/01' And [DateOrdered] <= '16/10/01'

[DateOrdered]>= 13/10/01 And [DateOrdered] <= 16/10/01

[DateOrdered]>= #13/10/01# [DateOrdered] And <=#16/10/01#

[DateOrdered]Between #13/10/01# And #16/10/01#

but none of these seem to work.

Any help at this stage would be hugely appreciated.
 
I had this problem before too. I couldn't find a solution and re created them in VB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top