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

Parameter Value and Data Question 2

Status
Not open for further replies.

taltonm

ISP
Nov 1, 2001
15
US
Hi,

I have a n annoying issue that I cannot put my finger on. I have a report to write that requires a from/to date parameter for appointments. no problem there.

the other requirement of the report is that I look at the previous appointment date to see what was done on that date. Problem, if I am looking at the next weeks appointments say 5/22/06--5-26-06, the parameter selection obviously only looks at records with that date. if the previous appointment happened two months ago it does not show since it is outside that range.

any light shed help would be appreciated.
thanks
Mark
 
Select the appointments table twice, this adds it as an 'alias', which can be treated as if it were a separate table.

Be careful about the range you give it - if the alias doesn't include apointments next week, then you'll not see cases with an apointments next week but none two months ago. Select the alias for everything from two months ago up to your end date.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
ok, I will give that a try and report back, thanks for the insight

Mark
 
looks like everything is working good, as soon as you said alias, I realized what I was missing. thank you very much for your help.
 
how should I link the Aliased table?

thanks
Mark
 
Depends on your data. Normally I link by account number and date-stamp: our database has datestamps that let us look at the same record at different times, where necessary.

[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