S
Steph_canoe
Hi,
I'm trying to convert the following function from Oracle SQL to MS Access.
I'm using Access 2003.
The "poscarmap" is a double from 1 to 98. My P_FILTREREGION field is a memo
field containing the letter "Y" which is placed at different places in the
field. I assume that if there is 12 spaces before tbe "Y" and the "Y" is at
the 13 position, it will relate to the "poscarmap" 13.
I have no clue how to do something similair in Access.
Here is my Oracle function :
r.poscarmap = INSTRC(P_FILTREREGION, 'Y', 1, 1)
My from and where statements:
from
com_grp_client g,
com_clients c,
poste p,
for_tracking_log t ,
refregion r,
creneau cr
where
cr.numero = p.p_creneau and
c.no_grp_client_parent = g.no_grp_client and
g.no_grp_client_corpo in ('G121159') and
p.p_noemployeur = c.no_client and
c.no_client = t.numemp and
c.no_grp_client_forfait = t.no_grp_client and
t.no_formation = p.p_noposte and
r.poscarmap = INSTRC(P_FILTREREGION, 'Y', 1, 1) and
r.langue = 'F' and
t.date_log > to_date('2009-01-01','YYYY-MM-DD') and
t.date_log < to_date('2009-01-31','YYYY-MM-DD')+1
Any help will be appreciated
Thanks
Steph_canoe
I'm trying to convert the following function from Oracle SQL to MS Access.
I'm using Access 2003.
The "poscarmap" is a double from 1 to 98. My P_FILTREREGION field is a memo
field containing the letter "Y" which is placed at different places in the
field. I assume that if there is 12 spaces before tbe "Y" and the "Y" is at
the 13 position, it will relate to the "poscarmap" 13.
I have no clue how to do something similair in Access.
Here is my Oracle function :
r.poscarmap = INSTRC(P_FILTREREGION, 'Y', 1, 1)
My from and where statements:
from
com_grp_client g,
com_clients c,
poste p,
for_tracking_log t ,
refregion r,
creneau cr
where
cr.numero = p.p_creneau and
c.no_grp_client_parent = g.no_grp_client and
g.no_grp_client_corpo in ('G121159') and
p.p_noemployeur = c.no_client and
c.no_client = t.numemp and
c.no_grp_client_forfait = t.no_grp_client and
t.no_formation = p.p_noposte and
r.poscarmap = INSTRC(P_FILTREREGION, 'Y', 1, 1) and
r.langue = 'F' and
t.date_log > to_date('2009-01-01','YYYY-MM-DD') and
t.date_log < to_date('2009-01-31','YYYY-MM-DD')+1
Any help will be appreciated
Thanks
Steph_canoe