W
WildlyHarry
I have a Pass Through query that looks like this.
select
Location,City,State,Country,Pings
from
(select
sd_term_name_loc as 'Location',
sd_term_city as 'City',
sd_term_st as 'State',
sd_term_cntry as 'Country',
count(sd_key)as 'Pings'
from detail (nolock)
where
-- ***** The dates below refer to the date and time at which the
transaction was loaded to PRM.
-- *****
-- ***** The number of pings which have occurred BETWEEN those dates/times
will be counted.
-- *****
-- ***** Enter the date/time in the format '09/16/2007 14:00:00.000'
Be sure to use apostrophes.
dd_apdate between '10/23/2007 14:30:00.001' and
'10/24/2007 14:30:00.000'
and md_tran_amt1 between .01 and .99
and left(sd_msg_typ,3) in ('pin','sig')
and sd_mbr_num <> 'dep'
and sd_term_name_loc <> ' '
and sd_resp_cde <> 'PA'
group by sd_term_name_loc, sd_term_city, sd_term_st, sd_term_cntry ) temp_a
where
Pings > 5
order by Pings desc
I want to replace the dates and the amounts with variables from a form ie
[form]![form1]![date] etc. How can I do this? Thanks in advance for your
help.
select
Location,City,State,Country,Pings
from
(select
sd_term_name_loc as 'Location',
sd_term_city as 'City',
sd_term_st as 'State',
sd_term_cntry as 'Country',
count(sd_key)as 'Pings'
from detail (nolock)
where
-- ***** The dates below refer to the date and time at which the
transaction was loaded to PRM.
-- *****
-- ***** The number of pings which have occurred BETWEEN those dates/times
will be counted.
-- *****
-- ***** Enter the date/time in the format '09/16/2007 14:00:00.000'
Be sure to use apostrophes.
dd_apdate between '10/23/2007 14:30:00.001' and
'10/24/2007 14:30:00.000'
and md_tran_amt1 between .01 and .99
and left(sd_msg_typ,3) in ('pin','sig')
and sd_mbr_num <> 'dep'
and sd_term_name_loc <> ' '
and sd_resp_cde <> 'PA'
group by sd_term_name_loc, sd_term_city, sd_term_st, sd_term_cntry ) temp_a
where
Pings > 5
order by Pings desc
I want to replace the dates and the amounts with variables from a form ie
[form]![form1]![date] etc. How can I do this? Thanks in advance for your
help.