sql - MS Access "This recordset is not updatable" in a SELECT query -


i'm stumped regarding message ms access giving me.

i trying run select query, 2 sub-queries within it. tables local.

could please explain me why following code returning error?

select s.sku, s.date, s.[order no], p.wsp, p.average_cost, s.[item status] [item detail temp] s, [fd worksheets temp] p [p].[sku]=[s].[sku] , [p].[date use]=(select min(p2.[date use])                            [fd worksheets temp] p2                           p2.[sku] = s.[sku]                          ,    p2.[date use] >= s.[date]); 

giving google hasn't particularly helped. have macros enabled in security make sure wasnt it, , can tell dont have sort of grouping in code above cause error?

additionally, believe code work fine, whole time loading bar message displayed in bottom left corner of screen. runs incredibly slow, , i'm sure have run query in past without message showing up, , quicker currently.

many thanks

edit: after looking bit more, have found few possible reasons:

"- uses first(), sum(), max(), count(), etc. in select clause. queries aggregate records read-only. - there min() function, causing it?

- has subquery in select clause. uncheck show box under subquery, or use domain aggregation function instead."

- fields in join not indexed correctly: there no primary key or unique index on joined fields. there no unique key fields, reason?

join table sources , use domain aggregate function, dmin, make query updateable.

from     [item detail temp] s     inner join [fd worksheets temp] p     on [p].[sku]=[s].[sku]     [p].[date use]=         dmin             (                 "[date use]",                 "fd worksheets temp",                 "[sku] = " & s.[sku] & " , [date use] >= " & format(s.[date], "\#yyyy-m-d\#")             ); 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -