adventurous1
Programmer
Hi...
I have an Oracle function that needs to be converted to an Access function (below). I have tried but cannot get it to work in Access. Can someone help out by posting the converted function?
Thanks!
create or replace function advent (f1 in varchar2, f2 in varchar2) return varchar2 is
hold_string varchar2(4000);
begin
for r in (select field3 from adventurous where f1 = field1 and f2 = field2) loop
if length(hold_string) > 0 then
hold_string := hold_string||', ';
end if;
hold_string := hold_string||r.field3;
end loop;
return hold_string;
end;
I have an Oracle function that needs to be converted to an Access function (below). I have tried but cannot get it to work in Access. Can someone help out by posting the converted function?
Thanks!
create or replace function advent (f1 in varchar2, f2 in varchar2) return varchar2 is
hold_string varchar2(4000);
begin
for r in (select field3 from adventurous where f1 = field1 and f2 = field2) loop
if length(hold_string) > 0 then
hold_string := hold_string||', ';
end if;
hold_string := hold_string||r.field3;
end loop;
return hold_string;
end;