W
WildlyHarry
I have read all of the posts on this forum about Pass Through queries and I
just do not get it. Does anyone have any sample code of how they used data
on a form as criteria in a Pass Through query. Particularly for date ranges.
I have a Pass Through query that looks like this.
select [detail].[sd_term_cntry], [detail].[sd_datekey],
[detail].[md_tran_amt1], [detail].[sd_key], [detail].[sd_resp_cde],
[detail].[sd_mbr_num]
from [detail] (nolock)
where ((([detail].[sd_term_cntry]) <> '999')
and (([detail].[sd_term_cntry]) <> ' ')
and (([detail].[sd_mbr_num])='cus'))
and (([detail].[sd_datekey]) between '20071001 00:00:00.000' and '20071001
23:59:59.999' );
I want the user to be able to enter a date range on a form that will be the
criteria in for [detail].[sd_datekey] and I cannot for the life of me figure
out how to do this. Why would access prevent you from entering criteria this
way in a Pass Through query, seems like it should be SOP? Thanks in advance
for you help.
just do not get it. Does anyone have any sample code of how they used data
on a form as criteria in a Pass Through query. Particularly for date ranges.
I have a Pass Through query that looks like this.
select [detail].[sd_term_cntry], [detail].[sd_datekey],
[detail].[md_tran_amt1], [detail].[sd_key], [detail].[sd_resp_cde],
[detail].[sd_mbr_num]
from [detail] (nolock)
where ((([detail].[sd_term_cntry]) <> '999')
and (([detail].[sd_term_cntry]) <> ' ')
and (([detail].[sd_mbr_num])='cus'))
and (([detail].[sd_datekey]) between '20071001 00:00:00.000' and '20071001
23:59:59.999' );
I want the user to be able to enter a date range on a form that will be the
criteria in for [detail].[sd_datekey] and I cannot for the life of me figure
out how to do this. Why would access prevent you from entering criteria this
way in a Pass Through query, seems like it should be SOP? Thanks in advance
for you help.