I
InAFix
Access 2k
I wrote a function to append data to a table based on a form where the
user could select from one of 24 payroll weeks or 3 special weeks
(total of 27 selections).
Old Function - Function sel401kWeek(WkNo, wk1, wk2, wk3, wk4, wk5,
wk6, wk7, wk8, wk9, wk10, _
wk11, wk12, wk13, wk14, wk15, wk16, Wk17, wk18, wk19, wk20, wk21, _
wk22, wk23, wk24, sp1, sp2, sp3)
The function has worked fine until I needed to expand to 8 special
weeks.
New Function - Function sel401kWeek(WkNo, wk1, wk2, wk3, wk4, wk5,
wk6, wk7, wk8, wk9, wk10, _
wk11, wk12, wk13, wk14, wk15, wk16, Wk17, wk18, wk19, wk20, wk21, _
wk22, wk23, wk24, sp1, sp2, sp3, sp4, sp5, sp6, sp7, sp8)
When I add the expression to the query I receive the "The expression
you entered is too complex" message.
I have no problem splitting out the additional special weeks to a sub
but I don't know how to pass the values for the sub to the query and
keep the results in one field. (The table is later used to create an
export file). Do I need a separate query with the special week
function?
tia for any ideas.
I wrote a function to append data to a table based on a form where the
user could select from one of 24 payroll weeks or 3 special weeks
(total of 27 selections).
Old Function - Function sel401kWeek(WkNo, wk1, wk2, wk3, wk4, wk5,
wk6, wk7, wk8, wk9, wk10, _
wk11, wk12, wk13, wk14, wk15, wk16, Wk17, wk18, wk19, wk20, wk21, _
wk22, wk23, wk24, sp1, sp2, sp3)
The function has worked fine until I needed to expand to 8 special
weeks.
New Function - Function sel401kWeek(WkNo, wk1, wk2, wk3, wk4, wk5,
wk6, wk7, wk8, wk9, wk10, _
wk11, wk12, wk13, wk14, wk15, wk16, Wk17, wk18, wk19, wk20, wk21, _
wk22, wk23, wk24, sp1, sp2, sp3, sp4, sp5, sp6, sp7, sp8)
When I add the expression to the query I receive the "The expression
you entered is too complex" message.
I have no problem splitting out the additional special weeks to a sub
but I don't know how to pass the values for the sub to the query and
keep the results in one field. (The table is later used to create an
export file). Do I need a separate query with the special week
function?
tia for any ideas.