G
Grd
Hi,
I have a union query which regularily generates the "number of columns
doesn't match" problem in Access. This happens when I run the query through a
VBA code moduel - specifically I'm doing a DSum that referes to a query that
is based upon this Union query. So when this DSUM does its thing sometimes I
get this problem.
Also it is inconsistent so sometimes it comes up (about half the time)
sometimes it doesn't. I use the VBA code On Error resume to get it to work -
but its slowing down my application.
When I run it directly by double clicking on it in the Database window there
are no problems. (The number of columns ofcourse do match)
I put the ALL word in the UNION statement to help with the problem but to no
avail.
Is there an alternative to DSUM or something that will not trigger this bug??
Thanks in advance
Gordon
I have a union query which regularily generates the "number of columns
doesn't match" problem in Access. This happens when I run the query through a
VBA code moduel - specifically I'm doing a DSum that referes to a query that
is based upon this Union query. So when this DSUM does its thing sometimes I
get this problem.
Also it is inconsistent so sometimes it comes up (about half the time)
sometimes it doesn't. I use the VBA code On Error resume to get it to work -
but its slowing down my application.
When I run it directly by double clicking on it in the Database window there
are no problems. (The number of columns ofcourse do match)
I put the ALL word in the UNION statement to help with the problem but to no
avail.
Is there an alternative to DSUM or something that will not trigger this bug??
Thanks in advance
Gordon