My query dosnt allow edits when I use a select statement

  • Thread starter mark_jm via AccessMonster.com
  • Start date
M

mark_jm via AccessMonster.com

I have a query which uses data from one table, but which selects data from
other tables dependant on certain field values.

The query works fine until I add the select ststement:
exrate: (SELECT [currency_rates_table].[rate] FROM [currency_rates_table]
WHERE([currency type] = [Suppliers].[currency] AND [from]<=[date entered]
AND [to]>[date entered] ))

As soon as I add this select statement,( which does what is is supposed to do)
, the query them dosnt allow edits???

Any ideas why and how to over coem it. I have tried converting it to a
dlookup, which does seem to work , but this is not as efficient as the select
statement , and I would really like to understand why the select statement is
doing this any way???
 
A

Allen Browne

Displaying results from a subquery will make your query non-updatable.

Perhaps you could use a DLookup() expression to get the rate.
 
S

Stefan Hoffmann

hi Mark,

mark_jm via AccessMonster.com said:
Any ideas why and how to over coem it. I have tried converting it to a
dlookup, which does seem to work , but this is not as efficient as the select
statement , and I would really like to understand why the select statement is
doing this any way???
Why, cause it is so. But your sub query looks like it should be possible
to convert it to a LEFT JOIN.


mfG
--> stefan <--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top