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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing date before record selection

Status
Not open for further replies.

twes3

Programmer
Jun 1, 2004
16
US
Here's my problem. I have two databases, FISCALDATE & INVOICEDATE. In my FISCALDATE file, i have two fields (begdate & enddate). In my INVOICEDATE file, I have one field (invoice date). I need all records from the INVOICEDATE file that fall within the begdate and enddate of the FISCALDATE file. Both dates field are the same (8 numeric). I need to do this before the report process to get the correct records. Linking the files together doesn't do the trick. Any suggestion?

Thanks in advance.
 
Please post your software, version, and the database being used.

You might create a Command object query in which you CAN join the tables correctly, but I won't waste anymore time until you post technical information.

-k
 
In your record selection, try
Code:
INVOICEDATE.date in [FISCALDATE.begdate to FISCALDATE.enddate]
That ought to work, whatever your Crystal version. (Though you should give it, 8 or 8.5 or 9 or whatever).

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top